We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 01174f7 commit e8ab227Copy full SHA for e8ab227
src/ClientWidgetApi.ts
@@ -276,8 +276,8 @@ export class ClientWidgetApi extends EventEmitter {
276
}
277
278
// 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
+ // by a timeline capability, then we know that there could be some state
+ // in the viewed room that the widget hasn't learned about yet- push it.
281
if (allowedEvents.length > 0 && this.viewedRoomId !== null && !this.canUseRoomTimeline(this.viewedRoomId)) {
282
this.pushRoomState(this.viewedRoomId);
283
0 commit comments