Skip to content

Commit 55e0df3

Browse files
authored
Merge pull request matrix-org#4856 from matrix-org/t3chguy/fix-join-slashcmd
Fix /join slash command via servers including room id as a via
2 parents f269aef + 9f6893e commit 55e0df3

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/SlashCommands.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -495,8 +495,7 @@ export const Commands = [
495495
});
496496
return success();
497497
} else if (params[0][0] === '!') {
498-
const roomId = params[0];
499-
const viaServers = params.splice(0);
498+
const [roomId, ...viaServers] = params;
500499

501500
dis.dispatch({
502501
action: 'view_room',

0 commit comments

Comments
 (0)