mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2025-12-24 12:19:41 +00:00
Move Whisper.events out of views and tests
This commit is contained in:
@@ -324,5 +324,16 @@
|
||||
}
|
||||
};
|
||||
|
||||
Whisper.events.on('unauthorized', function() {
|
||||
if (owsDesktopApp.inboxView) {
|
||||
owsDesktopApp.inboxView.networkStatusView.update();
|
||||
}
|
||||
});
|
||||
Whisper.events.on('reconnectTimer', function() {
|
||||
if (owsDesktopApp.inboxView) {
|
||||
owsDesktopApp.inboxView.networkStatusView.setSocketReconnectInterval(60000);
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
})();
|
||||
|
||||
Reference in New Issue
Block a user