mirror of
https://github.com/overleaf/overleaf.git
synced 2025-04-20 04:13:39 +00:00
enable packs by default for new docs
This commit is contained in:
parent
d10123d3c4
commit
29c7c5e249
1 changed files with 1 additions and 2 deletions
|
@ -47,10 +47,9 @@ module.exports = UpdatesManager =
|
|||
if rawUpdates.length == 0
|
||||
return callback()
|
||||
|
||||
if temporary and (not lastCompressedUpdate? or lastCompressedUpdate.pack?) # handle pack append as a special case
|
||||
if (not lastCompressedUpdate?) or lastCompressedUpdate.pack? # handle pack append as a special case
|
||||
UpdatesManager._updatePack project_id, doc_id, rawUpdates, temporary, lastCompressedUpdate, lastVersion, callback
|
||||
else #use the existing op code
|
||||
lastCompressedUpdate = null if lastCompressedUpdate?.pack? # can't handle packs with op code
|
||||
UpdatesManager._updateOp project_id, doc_id, rawUpdates, temporary, lastCompressedUpdate, lastVersion, callback
|
||||
|
||||
_updatePack: (project_id, doc_id, rawUpdates, temporary, lastCompressedUpdate, lastVersion, callback) ->
|
||||
|
|
Loading…
Add table
Reference in a new issue