Skip to content

Commit

Permalink
Merge pull request #247 from matrix-org/hs/on-user-query-bug
Browse files Browse the repository at this point in the history
Fix alias queries not arriving through the bridge
  • Loading branch information
Half-Shot authored Oct 8, 2020
2 parents 953cc5d + de2a57b commit 783cb7a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
1 change: 1 addition & 0 deletions changelog.d/247.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fix bug where OnAliasQuery would fail to fire if OnUserQuery was not defined
3 changes: 0 additions & 3 deletions src/bridge.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1100,9 +1100,6 @@ export class Bridge {
if (!this.opts.controller.onAliasQuery) {
return;
}
if (!this.opts.controller.onUserQuery) {
return;
}
if (!this.botIntent) {
throw Error('botIntent is not ready yet');
}
Expand Down

0 comments on commit 783cb7a

Please sign in to comment.