Просмотр исходного кода

enable packs by default for new docs

Brian Gough 10 лет назад
Родитель
Сommit
29c7c5e249
1 измененных файлов с 1 добавлено и 2 удалено
  1. 1 2
      services/track-changes/app/coffee/UpdatesManager.coffee

+ 1 - 2
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) ->