[PDF] Fix collaboration notification on start

This commit is contained in:
Julia Radzhabova
2024-10-10 00:05:28 +03:00
parent 5eeac5e2af
commit c3c3e2a78c
2 changed files with 2 additions and 2 deletions

View File

@ -2208,7 +2208,7 @@ define([
// },
onCollaborativeChanges: function() {
if (this._state.hasCollaborativeChanges) return;
if (this._state.hasCollaborativeChanges || Common.Utils.InternalSettings.get("pdfe-settings-coauthmode")) return;
this._state.hasCollaborativeChanges = true;
if (this.appOptions.isEdit)
this.getApplication().getController('Statusbar').setStatusCaption(this.txtNeedSynchronize, true);

View File

@ -1686,7 +1686,7 @@ define([
/** coauthoring begin **/
onCollaborativeChanges: function () {
if (!(this.mode.isPDFAnnotate || this.mode.isPDFEdit)) return;
if (!(this.mode.isPDFAnnotate || this.mode.isPDFEdit) || Common.Utils.InternalSettings.get("pdfe-settings-coauthmode")) return;
if (this._state.hasCollaborativeChanges) return;
if (!this.btnCollabChanges.rendered || this._state.previewmode) {