diff --git a/src/stores/widgets/StopGapWidgetDriver.ts b/src/stores/widgets/StopGapWidgetDriver.ts index dadedcfe68b..13cd260ef00 100644 --- a/src/stores/widgets/StopGapWidgetDriver.ts +++ b/src/stores/widgets/StopGapWidgetDriver.ts @@ -159,7 +159,7 @@ export class StopGapWidgetDriver extends WidgetDriver { if (results.length >= limit) break; const ev = events[i]; - if (ev.getType() !== eventType) continue; + if (ev.getType() !== eventType || ev.isState()) continue; if (eventType === EventType.RoomMessage && msgtype && msgtype !== ev.getContent()['msgtype']) continue; results.push(ev); }