Skip to content
Permalink
Browse files

Add missing reaction statement

  • Loading branch information...
Half-Shot committed Aug 16, 2019
1 parent 0625b89 commit bba7b98b229698ae96b6bc8aeb56d743c0f88e41
Showing with 13 additions and 1 deletion.
  1. +13 −1 src/Main.ts
@@ -549,14 +549,26 @@ export class Main {
try {
await room.onMatrixRedaction(ev);
} catch (e) {
log.error("Failed procesing matrix message: ", e);
log.error("Failed procesing matrix redaction message: ", e);
endTimer({outcome: "fail"});
return;
}
endTimer({outcome: "success"});
return;
}

// Handle a m.reaction event
if (ev.type === "m.reaction") {
try {
await room.onMatrixReaction(ev);
} catch (e) {
log.error("Failed procesing reaction message: ", e);
endTimer({outcome: "fail"});
return;
}
endTimer({outcome: "success"});
}

// Handle a m.room.message event
if (ev.type === "m.room.message" || ev.content) {
if (ev.content["m.relates_to"] !== undefined) {

0 comments on commit bba7b98

Please sign in to comment.
You can’t perform that action at this time.