Send clear events to widgets when permitted

Fixes https://github.com/vector-im/element-web/issues/17615
pull/21833/head
Travis Ralston 2021-07-13 23:17:17 -06:00
parent de4a29cd3c
commit 9495ba001c
2 changed files with 2 additions and 2 deletions

View File

@ -415,7 +415,7 @@ export class StopGapWidget extends EventEmitter {
private feedEvent(ev: MatrixEvent) {
if (!this.messaging) return;
const raw = ev.event as IEvent;
const raw = ev.getClearEvent() as IEvent;
this.messaging.feedEvent(raw).catch(e => {
console.error("Error sending event to widget: ", e);
});

View File

@ -164,7 +164,7 @@ export class StopGapWidgetDriver extends WidgetDriver {
results.push(ev);
}
return results.map(e => e.event);
return results.map(e => e.getClearEvent());
}
public async readStateEvents(eventType: string, stateKey: string | undefined, limit: number): Promise<object[]> {