1
0
mirror of https://github.com/matrix-org/matrix-react-sdk.git synced 2025-11-07 10:46:24 +03:00

Rename uses of function too

This commit is contained in:
David Baker
2018-05-15 17:34:02 +01:00
parent e4a221e42d
commit fadf264a1b

View File

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