mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2025-12-24 12:19:41 +00:00
Resilience to quick reconnects: always reprocess from cache first
This commit is contained in:
committed by
Josh Perez
parent
f21dad1519
commit
0122cfd22a
@@ -146,7 +146,6 @@ class MessageReceiverInner extends EventTarget {
|
||||
signalingKey: ArrayBuffer,
|
||||
options: {
|
||||
serverTrustRoot: string;
|
||||
retryCached?: string;
|
||||
}
|
||||
) {
|
||||
super();
|
||||
@@ -196,9 +195,8 @@ class MessageReceiverInner extends EventTarget {
|
||||
processBatch: this.cacheRemoveBatch.bind(this),
|
||||
});
|
||||
|
||||
if (options.retryCached) {
|
||||
this.pendingQueue.add(async () => this.queueAllCached());
|
||||
}
|
||||
// We always process our cache before any websocket message
|
||||
this.pendingQueue.add(async () => this.queueAllCached());
|
||||
}
|
||||
|
||||
static stringToArrayBuffer = (string: string): ArrayBuffer =>
|
||||
|
||||
Reference in New Issue
Block a user