mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-15 14:43:46 +01:00
Merge pull request #25910 from overleaf/em-track-changes-sharejs
Track changes in the history OT sharejs doc GitOrigin-RevId: 17365219f24a25790eac611dbde9681eb73d0961
This commit is contained in:
@@ -185,9 +185,9 @@ function useCodeMirrorScope(view: EditorView) {
|
||||
|
||||
if (currentDocument) {
|
||||
if (trackChanges) {
|
||||
currentDocument.track_changes_as = userId || 'anonymous'
|
||||
currentDocument.setTrackChangesUserId(userId ?? 'anonymous')
|
||||
} else {
|
||||
currentDocument.track_changes_as = null
|
||||
currentDocument.setTrackChangesUserId(null)
|
||||
}
|
||||
}
|
||||
}, [userId, currentDocument, trackChanges])
|
||||
|
||||
Reference in New Issue
Block a user