You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-22 04:02:40 +03:00
RoomDirectory Dropdown should use roomDirectory.servers
The sample config.json in riot-web has "roomDirectory.servers" and not "servers". Are other systems than riot-web use "servers" without "roomDirectory" ? Then this would break these.
This commit is contained in:
committed by
GitHub
parent
86c49d5807
commit
892802e9cc
@@ -131,8 +131,8 @@ export default class NetworkDropdown extends React.Component {
|
|||||||
const options = [];
|
const options = [];
|
||||||
|
|
||||||
let servers = [];
|
let servers = [];
|
||||||
if (this.props.config.servers) {
|
if (this.props.config.roomDirectory.servers) {
|
||||||
servers = servers.concat(this.props.config.servers);
|
servers = servers.concat(this.props.config.roomDirectory.servers);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (servers.indexOf(MatrixClientPeg.getHomeServerName()) == -1) {
|
if (servers.indexOf(MatrixClientPeg.getHomeServerName()) == -1) {
|
||||||
|
|||||||
Reference in New Issue
Block a user