Send clear events to widgets when permitted
Fixes https://github.com/vector-im/element-web/issues/17615pull/21833/head
parent
de4a29cd3c
commit
9495ba001c
|
@ -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);
|
||||
});
|
||||
|
|
|
@ -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[]> {
|
||||
|
|
Loading…
Reference in New Issue