Skip to content

Commit 5cc9b80

Browse files
committed
Fix aliases
1 parent 7f4ab61 commit 5cc9b80

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/base.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -474,7 +474,8 @@ class Base {
474474
return null;
475475
}
476476
info('reducing array of alases to a 3prid');
477-
return room.getAliases().reduce((result, alias) => {
477+
const aliases = [room.getCanonicalAlias()].concat(room.getAliases());
478+
return aliases.reduce((result, alias) => {
478479
const localpart = alias.replace(':'+this.domain, '');
479480
const matches = localpart.match(patt);
480481
return matches ? matches[1] : result;

0 commit comments

Comments
 (0)