Merge pull request #691 from ONLYOFFICE/fix/bug-47922

Fix/bug 47922
This commit is contained in:
Julia Radzhabova 2021-02-03 00:05:45 +03:00 committed by GitHub
commit c2aaf05349
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 15 additions and 4 deletions

View file

@ -544,10 +544,15 @@ define([
if (me.appOptions.isEdit && me.appOptions.canLicense && !me.appOptions.isOffline && me.appOptions.canCoAuthoring) {
// Force ON fast co-authoring mode
me._state.fastCoauth = true;
me.api.asc_SetFastCollaborative(me._state.fastCoauth);
} else if (!me.appOptions.isEdit && me.appOptions.isRestrictedEdit) {
me._state.fastCoauth = true;
me.api.asc_SetFastCollaborative(me._state.fastCoauth);
me.api.asc_setAutoSaveGap(1);
} else {
me._state.fastCoauth = false;
me.api.asc_SetFastCollaborative(me._state.fastCoauth);
}
me.api.asc_SetFastCollaborative(me._state.fastCoauth);
/** coauthoring end **/
if (me.appOptions.isEdit) {

View file

@ -549,10 +549,16 @@ define([
if (this.appOptions.isEdit && this.appOptions.canLicense && !this.appOptions.isOffline && this.appOptions.canCoAuthoring) {
// Force ON fast co-authoring mode
me._state.fastCoauth = true;
} else
this._state.fastCoauth = true;
this.api.asc_SetFastCollaborative(this._state.fastCoauth);
} else if (!this.appOptions.isEdit && this.appOptions.isRestrictedEdit) {
this._state.fastCoauth = true;
this.api.asc_SetFastCollaborative(this._state.fastCoauth);
this.api.asc_setAutoSaveGap(1);
} else {
this._state.fastCoauth = false;
this.api.asc_SetFastCollaborative(this._state.fastCoauth);
this.api.asc_SetFastCollaborative(this._state.fastCoauth);
}
/** coauthoring end **/
me.api.asc_registerCallback('asc_onStartAction', _.bind(me.onLongActionBegin, me));