mirror of
https://github.com/Novaloop-AG/healthchat-web.git
synced 2026-11-10 09:15:16 +00:00
Exclude state events from widgets reading room events
They can request state reading permissions to read state.
This commit is contained in:
@@ -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);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user