From 7d700634e132a8dd52c21afdc2f0dcd4b21afc74 Mon Sep 17 00:00:00 2001 From: Travis Ralston Date: Mon, 3 Apr 2023 14:11:19 -0600 Subject: [PATCH] Cherrypick 9023c78e66dd1a74bdb6d7fd301ec0cab8f2395f --- src/Mjolnir.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Mjolnir.ts b/src/Mjolnir.ts index 6026072..048d800 100644 --- a/src/Mjolnir.ts +++ b/src/Mjolnir.ts @@ -236,7 +236,9 @@ export class Mjolnir { event['content']['body'] = COMMAND_PREFIX + restOfBody; LogService.info("Mjolnir", `Command being run by ${event['sender']}: ${event['content']['body']}`); - await client.sendReadReceipt(roomId, event['event_id']); + client.sendReadReceipt(roomId, event['event_id']).catch((e: any) => { + LogService.warn("Mjolnir", "Error sending read receipt:", e); + }); return handleCommand(roomId, event, this); } });