Exclude state events from widgets reading room events
They can request state reading permissions to read state.
This commit is contained in:
parent
8de4f092d4
commit
421392f339
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue