Introduce outage network status

Co-authored-by: Scott Nonnenberg <scott@signal.org>
This commit is contained in:
Fedor Indutny
2024-03-12 12:52:02 -07:00
committed by GitHub
parent 1ca4ee555f
commit 1823f7eca9
11 changed files with 164 additions and 3 deletions

View File

@@ -1325,6 +1325,10 @@ export function initialize({
window.Whisper.events.trigger('unlinkAndDisconnect');
});
socketManager.on('connectError', () => {
window.Whisper.events.trigger('socketConnectError');
});
socketManager.on('deviceConflict', () => {
window.Whisper.events.trigger('unlinkAndDisconnect');
});