Move Whisper.events out of views and tests

This commit is contained in:
lilia 2017-04-21 13:21:18 -07:00
parent a1c7369347
commit 40af226a4a
6 changed files with 13 additions and 6 deletions

View file

@ -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);
}
});
})();