mirror of
https://github.com/element-hq/element-web
synced 2024-11-28 04:21:57 +03:00
Merge pull request #6378 from matrix-org/travis/widgets/fix-state-read
Exclude state events from widgets reading room events
This commit is contained in:
commit
2c5c2e82bf
1 changed files with 1 additions and 1 deletions
|
@ -159,7 +159,7 @@ export class StopGapWidgetDriver extends WidgetDriver {
|
||||||
if (results.length >= limit) break;
|
if (results.length >= limit) break;
|
||||||
|
|
||||||
const ev = events[i];
|
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;
|
if (eventType === EventType.RoomMessage && msgtype && msgtype !== ev.getContent()['msgtype']) continue;
|
||||||
results.push(ev);
|
results.push(ev);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue