diff --git a/app/scenes/Document/components/Document.js b/app/scenes/Document/components/Document.js index 6533d925..15291927 100644 --- a/app/scenes/Document/components/Document.js +++ b/app/scenes/Document/components/Document.js @@ -92,11 +92,19 @@ class DocumentScene extends React.Component { if (this.props.readOnly || auth.team?.collaborativeEditing) { this.lastRevision = document.revision; + } + if (this.props.readOnly) { if (document.title !== this.title) { this.title = document.title; } - } else if (prevProps.document.revision !== this.lastRevision) { + } + + if ( + !this.props.readOnly && + !auth.team?.collaborativeEditing && + prevProps.document.revision !== this.lastRevision + ) { if (auth.user && document.updatedBy.id !== auth.user.id) { this.props.toasts.showToast( t(`Document updated by {{userName}}`, {