mirror of
https://github.com/element-hq/element-web
synced 2024-11-24 10:15:43 +03:00
change order of if or conditions as micro-optimization
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
parent
b84fd245b1
commit
7e45979e00
1 changed files with 1 additions and 1 deletions
|
@ -426,7 +426,7 @@ export class PartCreator {
|
|||
let room;
|
||||
if (alias[0] === '#') {
|
||||
room = this._client.getRooms().find((r) => {
|
||||
return r.getAliases().includes(alias) || r.getCanonicalAlias() === alias;
|
||||
return r.getCanonicalAlias() === alias || r.getAliases().includes(alias);
|
||||
});
|
||||
} else {
|
||||
room = this._client.getRoom(alias);
|
||||
|
|
Loading…
Reference in a new issue