Skip to content

Commit

Permalink
[PDF] Fix collaboration notification on start
Browse files Browse the repository at this point in the history
  • Loading branch information
JuliaRadzhabova committed Oct 9, 2024
1 parent 5eeac5e commit c3c3e2a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion apps/pdfeditor/main/app/controller/Main.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion apps/pdfeditor/main/app/view/Toolbar.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit c3c3e2a

Please sign in to comment.