Rename uses of function too
parent
e4a221e42d
commit
fadf264a1b
|
@ -311,13 +311,13 @@ function waitForUserWidget(widgetId, add) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (satisfiesCondition(currentAccountDataEvent)) {
|
if (eventInIntendedState(currentAccountDataEvent)) {
|
||||||
resolve();
|
resolve();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
function onAccountData(ev) {
|
function onAccountData(ev) {
|
||||||
if (satisfiesCondition(currentAccountDataEvent)) {
|
if (eventInIntendedState(currentAccountDataEvent)) {
|
||||||
MatrixClientPeg.get().removeListener('accountData', onAccountData);
|
MatrixClientPeg.get().removeListener('accountData', onAccountData);
|
||||||
clearTimeout(timerId);
|
clearTimeout(timerId);
|
||||||
resolve();
|
resolve();
|
||||||
|
|
Loading…
Reference in New Issue