Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Commit

Permalink
Send clear events to widgets when permitted
Browse files Browse the repository at this point in the history
  • Loading branch information
turt2live committed Jul 14, 2021
1 parent de4a29c commit 9495ba0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/stores/widgets/StopGapWidget.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
});
Expand Down
2 changes: 1 addition & 1 deletion src/stores/widgets/StopGapWidgetDriver.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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[]> {
Expand Down

0 comments on commit 9495ba0

Please sign in to comment.