mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2026-05-08 08:58:38 +01:00
Increment unprocessed attempts when fetching
This commit is contained in:
@@ -802,17 +802,11 @@ export default class MessageReceiver
|
||||
return [];
|
||||
}
|
||||
|
||||
const items = await this.storage.protocol.getAllUnprocessed();
|
||||
const items =
|
||||
await this.storage.protocol.getAllUnprocessedAndIncrementAttempts();
|
||||
log.info('getAllFromCache loaded', items.length, 'saved envelopes');
|
||||
|
||||
return items.map(item => {
|
||||
const { attempts = 0 } = item;
|
||||
|
||||
return {
|
||||
...item,
|
||||
attempts: attempts + 1,
|
||||
};
|
||||
});
|
||||
return items;
|
||||
}
|
||||
|
||||
private async decryptAndCacheBatch(
|
||||
|
||||
Reference in New Issue
Block a user