From 5862aa5ea58a6651a8186422ec31e7c4f321a037 Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Tue, 13 Dec 2016 09:46:02 -0500 Subject: [PATCH] Don't bother deleting from sync cache when deleting feed items --- chrome/content/zotero/xpcom/data/dataObject.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/chrome/content/zotero/xpcom/data/dataObject.js b/chrome/content/zotero/xpcom/data/dataObject.js index 13086f869..9c99eef61 100644 --- a/chrome/content/zotero/xpcom/data/dataObject.js +++ b/chrome/content/zotero/xpcom/data/dataObject.js @@ -1180,9 +1180,11 @@ Zotero.DataObject.prototype._initErase = Zotero.Promise.method(function (env) { Zotero.DataObject.prototype._finalizeErase = Zotero.Promise.coroutine(function* (env) { // Delete versions from sync cache - yield Zotero.Sync.Data.Local.deleteCacheObjectVersions( - this.objectType, this._libraryID, this._key - ); + if (this._objectType != 'feedItem') { + yield Zotero.Sync.Data.Local.deleteCacheObjectVersions( + this.objectType, this._libraryID, this._key + ); + } Zotero.DB.addCurrentCallback("commit", function () { this.ObjectsClass.unload(env.deletedObjectIDs || this.id);