From 5863dcdf67b3099f58fe4a56b7bc8671b5e54c5e Mon Sep 17 00:00:00 2001 From: Ajay Bura Date: Wed, 11 May 2022 20:56:49 +0530 Subject: [PATCH] Fix join with alias (#533) --- src/app/organisms/join-alias/JoinAlias.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/organisms/join-alias/JoinAlias.jsx b/src/app/organisms/join-alias/JoinAlias.jsx index 0078d76..9e7f6df 100644 --- a/src/app/organisms/join-alias/JoinAlias.jsx +++ b/src/app/organisms/join-alias/JoinAlias.jsx @@ -63,7 +63,7 @@ function JoinAliasContent({ term, requestClose }) { if (alias.startsWith('#')) { try { const aliasData = await mx.resolveRoomAlias(alias); - via = aliasData?.servers || []; + via = aliasData?.servers.slice(0, 3) || []; if (mountStore.getItem()) { setProcess(`Joining ${alias}...`); }