Merge pull request #4856 from matrix-org/t3chguy/fix-join-slashcmd

Fix /join slash command via servers including room id as a via
This commit is contained in:
Michael Telatynski 2020-06-30 17:36:15 +01:00 committed by GitHub
commit 55e0df3e00
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -495,8 +495,7 @@ export const Commands = [
});
return success();
} else if (params[0][0] === '!') {
const roomId = params[0];
const viaServers = params.splice(0);
const [roomId, ...viaServers] = params;
dis.dispatch({
action: 'view_room',