mirror of
https://github.com/vector-im/element-web.git
synced 2025-10-03 11:32:07 +02:00
Correctly populate the dispatch for joining a room via servers
Fixes https://github.com/vector-im/riot-web/issues/9817
This commit is contained in:
parent
35c0c3142f
commit
e65cc3b189
@ -380,8 +380,9 @@ export const CommandMap = {
|
|||||||
room_id: roomId,
|
room_id: roomId,
|
||||||
opts: {
|
opts: {
|
||||||
// These are passed down to the js-sdk's /join call
|
// These are passed down to the js-sdk's /join call
|
||||||
server_name: viaServers,
|
viaServers: viaServers,
|
||||||
},
|
},
|
||||||
|
via_servers: viaServers, // for the rejoin button
|
||||||
auto_join: true,
|
auto_join: true,
|
||||||
});
|
});
|
||||||
return success();
|
return success();
|
||||||
@ -422,10 +423,14 @@ export const CommandMap = {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (viaServers) {
|
if (viaServers) {
|
||||||
|
// For the join
|
||||||
dispatch["opts"] = {
|
dispatch["opts"] = {
|
||||||
// These are passed down to the js-sdk's /join call
|
// These are passed down to the js-sdk's /join call
|
||||||
server_name: viaServers,
|
viaServers: viaServers,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
// For if the join fails (rejoin button)
|
||||||
|
dispatch['via_servers'] = viaServers;
|
||||||
}
|
}
|
||||||
|
|
||||||
dis.dispatch(dispatch);
|
dis.dispatch(dispatch);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user