From fadf264a1bb763c4ce65be873a8e9d0b204e07b5 Mon Sep 17 00:00:00 2001 From: David Baker Date: Tue, 15 May 2018 17:34:02 +0100 Subject: [PATCH] Rename uses of function too --- src/ScalarMessaging.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ScalarMessaging.js b/src/ScalarMessaging.js index 01ee140eb3..9457e6ccfb 100644 --- a/src/ScalarMessaging.js +++ b/src/ScalarMessaging.js @@ -311,13 +311,13 @@ function waitForUserWidget(widgetId, add) { } } - if (satisfiesCondition(currentAccountDataEvent)) { + if (eventInIntendedState(currentAccountDataEvent)) { resolve(); return; } function onAccountData(ev) { - if (satisfiesCondition(currentAccountDataEvent)) { + if (eventInIntendedState(currentAccountDataEvent)) { MatrixClientPeg.get().removeListener('accountData', onAccountData); clearTimeout(timerId); resolve();