Send clear events to widgets when permitted
Fixes https://github.com/vector-im/element-web/issues/17615
This commit is contained in:
parent
de4a29cd3c
commit
9495ba001c
2 changed files with 2 additions and 2 deletions
|
@ -415,7 +415,7 @@ export class StopGapWidget extends EventEmitter {
|
||||||
private feedEvent(ev: MatrixEvent) {
|
private feedEvent(ev: MatrixEvent) {
|
||||||
if (!this.messaging) return;
|
if (!this.messaging) return;
|
||||||
|
|
||||||
const raw = ev.event as IEvent;
|
const raw = ev.getClearEvent() as IEvent;
|
||||||
this.messaging.feedEvent(raw).catch(e => {
|
this.messaging.feedEvent(raw).catch(e => {
|
||||||
console.error("Error sending event to widget: ", e);
|
console.error("Error sending event to widget: ", e);
|
||||||
});
|
});
|
||||||
|
|
|
@ -164,7 +164,7 @@ export class StopGapWidgetDriver extends WidgetDriver {
|
||||||
results.push(ev);
|
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[]> {
|
public async readStateEvents(eventType: string, stateKey: string | undefined, limit: number): Promise<object[]> {
|
||||||
|
|
Loading…
Reference in a new issue