diff --git a/apps/presentationeditor/mobile/app/controller/Main.js b/apps/presentationeditor/mobile/app/controller/Main.js index f59399248..ea28f7cad 100644 --- a/apps/presentationeditor/mobile/app/controller/Main.js +++ b/apps/presentationeditor/mobile/app/controller/Main.js @@ -544,12 +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) { diff --git a/apps/spreadsheeteditor/mobile/app/controller/Main.js b/apps/spreadsheeteditor/mobile/app/controller/Main.js index deed12cae..6e4db1866 100644 --- a/apps/spreadsheeteditor/mobile/app/controller/Main.js +++ b/apps/spreadsheeteditor/mobile/app/controller/Main.js @@ -549,12 +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; + this._state.fastCoauth = true; + this.api.asc_SetFastCollaborative(this._state.fastCoauth); } else if (!this.appOptions.isEdit && this.appOptions.isRestrictedEdit) { this._state.fastCoauth = true; - } else + 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));