Merge pull request #23714 from overleaf/ae-revert-unsaved-docs

Revert "Increase the length of unsaved doc time before the editor is locked"

GitOrigin-RevId: 0f2d257a55ebc3353ded2b10d505bfdb2e85f402
This commit is contained in:
Alf Eaton
2025-02-20 09:05:53 +00:00
committed by Copybot
parent 483c97a484
commit 432bbe0db8
10 changed files with 56 additions and 98 deletions
@@ -182,10 +182,6 @@ export class DocumentContainer extends EventEmitter {
return this.doc?.getRecentAck()
}
getInflightOpCreatedAt() {
return this.doc?.getInflightOpCreatedAt()
}
hasBufferedOps() {
return this.doc?.hasBufferedOps()
}
@@ -358,7 +354,7 @@ export class DocumentContainer extends EventEmitter {
pendingOpSize < MAX_PENDING_OP_SIZE
) {
// There is an op waiting to go to server but it is small and
// within the recent ack limit, this is OK for now.
// within the flushDelay, this is OK for now.
saved = true
debugConsole.log(
'[pollSavedStatus] pending op (small with recent ack) assume ok',