Rename uses of function too

pull/21833/head
David Baker 2018-05-15 17:34:02 +01:00
parent e4a221e42d
commit fadf264a1b
1 changed files with 2 additions and 2 deletions

View File

@ -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();