Update all non-major dependencies (#12815)
* Update all non-major dependencies * Prettier --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
@@ -62,9 +62,9 @@ const findRoom = (roomIdOrAlias: string): Room | null => {
|
||||
const client = MatrixClientPeg.safeGet();
|
||||
|
||||
return roomIdOrAlias[0] === "#"
|
||||
? client.getRooms().find((r) => {
|
||||
? (client.getRooms().find((r) => {
|
||||
return r.getCanonicalAlias() === roomIdOrAlias || r.getAltAliases().includes(roomIdOrAlias);
|
||||
}) ?? null
|
||||
}) ?? null)
|
||||
: client.getRoom(roomIdOrAlias);
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user