mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2026-04-21 08:58:19 +01:00
Disable notifications on new 'reconnect' event for laptop resume
This commit is contained in:
@@ -39,6 +39,12 @@ MessageReceiver.prototype.extend({
|
||||
return;
|
||||
}
|
||||
|
||||
this.count = 0;
|
||||
if (this.hasConnected) {
|
||||
const ev = new Event('reconnect');
|
||||
this.dispatchEvent(ev);
|
||||
}
|
||||
|
||||
this.hasConnected = true;
|
||||
|
||||
if (this.socket && this.socket.readyState !== WebSocket.CLOSED) {
|
||||
|
||||
Reference in New Issue
Block a user