Don't bother deleting from sync cache when deleting feed items

This commit is contained in:
Dan Stillman 2016-12-13 09:46:02 -05:00
parent e1f2dbb9db
commit 5862aa5ea5

View file

@ -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);