commit 5862aa5ea58a6651a8186422ec31e7c4f321a037
parent e1f2dbb9db47d9a6f75819e1a26e32320f1959d2
Author: Dan Stillman <dstillman@zotero.org>
Date: Tue, 13 Dec 2016 09:46:02 -0500
Don't bother deleting from sync cache when deleting feed items
Diffstat:
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
@@ -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);