Skip to content

Commit

Permalink
fix(frontend): Update last saved timestamp when document is saved
Browse files Browse the repository at this point in the history
Fixes: #4343

Signed-off-by: Jonas <jonas@freesources.org>
  • Loading branch information
mejo- committed Jun 28, 2023
1 parent cbbcd35 commit 12f1491
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/services/SyncService.js
Expand Up @@ -240,6 +240,7 @@ class SyncService {
manualSave,
})
this.emit('stateChange', { dirty: false })
this.connection.document.lastSavedVersionTime = Date.now() / 1000
logger.debug('[SyncService] saved', response)
const { document, sessions } = response.data
this.emit('save', { document, sessions })
Expand Down

0 comments on commit 12f1491

Please sign in to comment.