mirror of
https://github.com/element-hq/element-web
synced 2024-11-28 04:21:57 +03:00
Merge pull request #4211 from matrix-org/bwindels/viaserversfromroomdir-release
Fix: best-effort to join room without canonical alias over federation from room directory
This commit is contained in:
commit
8d56fb4c35
1 changed files with 6 additions and 0 deletions
|
@ -406,6 +406,12 @@ export default createReactClass({
|
||||||
// would normally decide what the name is.
|
// would normally decide what the name is.
|
||||||
name: room.name || room_alias || _t('Unnamed room'),
|
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
|
// 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
|
// which servers to start querying. However, there's no other way to join rooms in
|
||||||
|
|
Loading…
Reference in a new issue