Skip to content
This repository was archived by the owner on Sep 11, 2024. It is now read-only.

Commit e4a221e

Browse files
committed
More helpful function name
1 parent bb5ae74 commit e4a221e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/ScalarMessaging.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,9 @@ function waitForUserWidget(widgetId, add) {
300300
return new Promise((resolve, reject) => {
301301
const currentAccountDataEvent = MatrixClientPeg.get().getAccountData('m.widgets');
302302

303-
function satisfiesCondition(ev) {
303+
// Tests an account data event, returning true if it's in the state
304+
// we're waiting for it to be in
305+
function eventInIntendedState(ev) {
304306
if (!ev || !currentAccountDataEvent.getContent()) return false;
305307
if (add) {
306308
return ev.getContent()[widgetId] !== undefined;

0 commit comments

Comments
 (0)