From 29c7c5e2496c46e08f53a7b10d63a4694db95e34 Mon Sep 17 00:00:00 2001 From: Brian Gough Date: Mon, 25 Jan 2016 09:55:55 +0000 Subject: [PATCH] enable packs by default for new docs --- services/track-changes/app/coffee/UpdatesManager.coffee | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/services/track-changes/app/coffee/UpdatesManager.coffee b/services/track-changes/app/coffee/UpdatesManager.coffee index 29038fba8e..6332951734 100644 --- a/services/track-changes/app/coffee/UpdatesManager.coffee +++ b/services/track-changes/app/coffee/UpdatesManager.coffee @@ -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) ->