mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2026-04-24 10:28:03 +01:00
Always listen for (re-)registration events
If we clear local storage and re-register in a foreground page, the background page needs to re-init its websocket with the new account credentials.
This commit is contained in:
@@ -26,9 +26,8 @@
|
||||
|
||||
if (textsecure.registration.isDone()) {
|
||||
init();
|
||||
} else {
|
||||
extension.on('registration_done', init);
|
||||
}
|
||||
extension.on('registration_done', init);
|
||||
|
||||
function init() {
|
||||
if (!textsecure.registration.isDone()) { return; }
|
||||
|
||||
Reference in New Issue
Block a user