Kick off checks for updates in more situations

This commit is contained in:
Scott Nonnenberg 2019-10-03 12:07:35 -07:00
parent 5c00b89600
commit 0f93c780ec
5 changed files with 79 additions and 58 deletions

View file

@ -391,6 +391,11 @@
},
showStickerPack: async (packId, key) => {
// We can get these events even if the user has never linked this instance.
if (Whisper.Import.isIncomplete() || !Whisper.Registration.everDone()) {
return;
}
// Kick off the download
window.Signal.Stickers.downloadEphemeralPack(packId, key);

View file

@ -30,6 +30,8 @@
// the actual next step happens in confirmNumber() on submit form #link-phone
},
initialize(options = {}) {
window.readyForUpdates();
this.selectStep(Steps.SCAN_QR_CODE);
this.connect();
this.on('disconnected', this.reconnect);

View file

@ -12,6 +12,8 @@
templateName: 'standalone',
className: 'full-screen-flow',
initialize() {
window.readyForUpdates();
this.accountManager = getAccountManager();
this.render();