Removed hard limit on unprocessed messages in cache
This commit is contained in:
parent
1381e8df5d
commit
e51f582bfb
6 changed files with 130 additions and 44 deletions
|
@ -2012,12 +2012,24 @@ export class SignalProtocolStore extends EventEmitter {
|
|||
});
|
||||
}
|
||||
|
||||
getAllUnprocessedAndIncrementAttempts(): Promise<Array<UnprocessedType>> {
|
||||
return this.withZone(GLOBAL_ZONE, 'getAllUnprocessed', async () => {
|
||||
return window.Signal.Data.getAllUnprocessedAndIncrementAttempts();
|
||||
getAllUnprocessedIds(): Promise<Array<string>> {
|
||||
return this.withZone(GLOBAL_ZONE, 'getAllUnprocessedIds', () => {
|
||||
return window.Signal.Data.getAllUnprocessedIds();
|
||||
});
|
||||
}
|
||||
|
||||
getUnprocessedByIdsAndIncrementAttempts(
|
||||
ids: ReadonlyArray<string>
|
||||
): Promise<Array<UnprocessedType>> {
|
||||
return this.withZone(
|
||||
GLOBAL_ZONE,
|
||||
'getAllUnprocessedByIdsAndIncrementAttempts',
|
||||
async () => {
|
||||
return window.Signal.Data.getUnprocessedByIdsAndIncrementAttempts(ids);
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
getUnprocessedById(id: string): Promise<UnprocessedType | undefined> {
|
||||
return this.withZone(GLOBAL_ZONE, 'getUnprocessedById', async () => {
|
||||
return window.Signal.Data.getUnprocessedById(id);
|
||||
|
@ -2080,7 +2092,9 @@ export class SignalProtocolStore extends EventEmitter {
|
|||
});
|
||||
}
|
||||
|
||||
/** only for testing */
|
||||
removeAllUnprocessed(): Promise<void> {
|
||||
log.info('removeAllUnprocessed');
|
||||
return this.withZone(GLOBAL_ZONE, 'removeAllUnprocessed', async () => {
|
||||
await window.Signal.Data.removeAllUnprocessed();
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue