mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2026-04-27 20:03:25 +01:00
Flush last conversation message save on shutdown
This commit is contained in:
@@ -3133,8 +3133,10 @@ function removeUnprocessedSync(id: string | Array<string>): void {
|
||||
return;
|
||||
}
|
||||
|
||||
// This can happen normally due to flushing of `cacheRemoveBatcher` in
|
||||
// MessageReceiver.
|
||||
if (!id.length) {
|
||||
throw new Error('removeUnprocessedSync: No ids to delete!');
|
||||
return;
|
||||
}
|
||||
|
||||
assertSync(batchMultiVarQuery(db, id, removeUnprocessedsSync));
|
||||
|
||||
Reference in New Issue
Block a user