mirror of
https://github.com/vector-im/element-web.git
synced 2024-11-17 05:55:00 +08:00
pass current server as via server to join room
This commit is contained in:
parent
d6d686622c
commit
949ac2953e
@ -406,6 +406,12 @@ export default createReactClass({
|
||||
// would normally decide what the name is.
|
||||
name: room.name || room_alias || _t('Unnamed room'),
|
||||
};
|
||||
|
||||
if (this.state.roomServer) {
|
||||
payload.opts = {
|
||||
viaServers: [this.state.roomServer],
|
||||
};
|
||||
}
|
||||
}
|
||||
// It's not really possible to join Matrix rooms by ID because the HS has no way to know
|
||||
// which servers to start querying. However, there's no other way to join rooms in
|
||||
|
Loading…
Reference in New Issue
Block a user