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

Commit

Permalink
Merge pull request #6378 from matrix-org/travis/widgets/fix-state-read
Browse files Browse the repository at this point in the history
Exclude state events from widgets reading room events
  • Loading branch information
turt2live authored Jul 14, 2021
2 parents 8de4f09 + 421392f commit 2c5c2e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/stores/widgets/StopGapWidgetDriver.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 2c5c2e8

Please sign in to comment.