feat: Editing large notes (greater than 1.5MB) will result in more optimized syncing, in which changes are saved locally immediately, but sync with the server less frequently (roughly every 30 seconds rather than after every change). (#2768)
This commit is contained in:
@@ -896,6 +896,12 @@ export class SyncService
|
||||
|
||||
const { items, beginDate, frozenDirtyIndex, neverSyncedDeleted } = await this.prepareForSync(options)
|
||||
|
||||
if (options.mode === SyncMode.LocalOnly) {
|
||||
this.logger.debug('Syncing local only, skipping remote sync request')
|
||||
releaseLock()
|
||||
return
|
||||
}
|
||||
|
||||
const inTimeResolveQueue = this.getPendingRequestsMadeInTimeToPiggyBackOnCurrentRequest()
|
||||
|
||||
if (!shouldExecuteSync) {
|
||||
|
||||
Reference in New Issue
Block a user