Skip to content

Commit

Permalink
Don't emit messages from bot when supressEcho is on
Browse files Browse the repository at this point in the history
  • Loading branch information
Half-Shot committed Oct 20, 2020
1 parent 571b868 commit 66201c8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/bridge.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1154,7 +1154,8 @@ export class Bridge {
const isCanonicalState = event.state_key === "";
this.updateIntents(event);
if (this.opts.suppressEcho &&
this.registration.isUserMatch(event.sender, true)) {
(this.registration.isUserMatch(event.sender, true) ||
event.sender === this.botUserId)) {
return null;
}

Expand Down

0 comments on commit 66201c8

Please sign in to comment.