mirror of
https://github.com/matrix-org/mjolnir.git
synced 2024-10-01 01:36:06 -04:00
Treat read receipt errors as non-fatal
This commit is contained in:
parent
b42a3cfcc1
commit
9023c78e66
@ -205,7 +205,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);
|
||||
}
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user