mirror of https://github.com/vector-im/riot-web
Rename uses of function too
parent
e4a221e42d
commit
fadf264a1b
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue