use promise version to see if we're expired

pull/781/head
Ryan Tharp 5 years ago
parent 058d294eb0
commit 260e494aee

@ -1859,7 +1859,8 @@
message = window.Signal.Emoji.replaceColons(message).trim();
const toastOptions = { type: 'info' };
if (extension.expired()) {
const expiredVersion = await extension.expiredPromise();
if (expiredVersion) {
toastOptions.title = i18n('expiredWarning');
toastOptions.id = 'expiredWarning';
}

Loading…
Cancel
Save