Show critical-idle-primary-device banner in response to WS upgrade response headers

This commit is contained in:
trevor-signal 2025-03-06 12:58:57 -05:00 committed by GitHub
commit f5fe787ed7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
23 changed files with 337 additions and 14 deletions

View file

@ -1812,6 +1812,10 @@ export function initialize({
window.Whisper.events.trigger('firstEnvelope', incoming);
});
socketManager.on('serverAlerts', alerts => {
window.Whisper.events.trigger('serverAlerts', alerts);
});
if (useWebSocket) {
void socketManager.authenticate({ username, password });
}