From 260e494aee61fab90fb2623c159114b6441d4ba9 Mon Sep 17 00:00:00 2001 From: Ryan Tharp Date: Mon, 3 Feb 2020 19:02:43 -0800 Subject: [PATCH] use promise version to see if we're expired --- js/views/conversation_view.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/js/views/conversation_view.js b/js/views/conversation_view.js index 92c344eac..1014520c6 100644 --- a/js/views/conversation_view.js +++ b/js/views/conversation_view.js @@ -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'; }