Skip to content

Commit 9f6893e

Browse files
committed
Fix /join slash command via servers including room id as a via
Signed-off-by: Michael Telatynski <[email protected]>
1 parent 0059d44 commit 9f6893e

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)