Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

RoomDirectory Dropdown should use roomDirectory.servers #2680

Merged
merged 1 commit into from
Feb 22, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/components/views/directory/NetworkDropdown.js
Original file line number Diff line number Diff line change
Expand Up @@ -131,8 +131,8 @@ export default class NetworkDropdown extends React.Component {
const options = [];

let servers = [];
if (this.props.config.servers) {
servers = servers.concat(this.props.config.servers);
if (this.props.config.roomDirectory.servers) {
servers = servers.concat(this.props.config.roomDirectory.servers);
}

if (servers.indexOf(MatrixClientPeg.getHomeServerName()) == -1) {
Expand Down