From db03f16b8eefb59f83c1d506e8476fdee29bd7fd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=A0imon=20Brandner?= Date: Thu, 26 Aug 2021 19:24:00 +0200 Subject: [PATCH] Add a type MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Šimon Brandner --- src/client.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/client.ts b/src/client.ts index 320f70c15..33e4733f0 100644 --- a/src/client.ts +++ b/src/client.ts @@ -837,7 +837,7 @@ export class MatrixClient extends EventEmitter { // actions for themselves, so we have to kinda help them out when they are encrypted. // We do this so that push rules are correctly executed on events in their decrypted // state, such as highlights when the user's name is mentioned. - this.on("Event.decrypted", (event) => { + this.on("Event.decrypted", (event: MatrixEvent) => { const oldActions = event.getPushActions(); const actions = this.pushProcessor.actionsForEvent(event); event.setPushActions(actions); // Might as well while we're here