Skip to content

Commit e8ab227

Browse files
committed
Try to clarify comment?
1 parent 01174f7 commit e8ab227

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/ClientWidgetApi.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -276,8 +276,8 @@ export class ClientWidgetApi extends EventEmitter {
276276
}
277277
}
278278
// If new events are allowed and the currently viewed room isn't covered
279-
// by a timeline capability, then this is the widget's opportunity to
280-
// learn the state of the viewed room
279+
// by a timeline capability, then we know that there could be some state
280+
// in the viewed room that the widget hasn't learned about yet- push it.
281281
if (allowedEvents.length > 0 && this.viewedRoomId !== null && !this.canUseRoomTimeline(this.viewedRoomId)) {
282282
this.pushRoomState(this.viewedRoomId);
283283
}

0 commit comments

Comments
 (0)