Don't bother deleting from sync cache when deleting feed items
This commit is contained in:
parent
e1f2dbb9db
commit
5862aa5ea5
1 changed files with 5 additions and 3 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue