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

Commit

Permalink
Merge pull request #2680 from alexte/develop
Browse files Browse the repository at this point in the history
RoomDirectory Dropdown should use roomDirectory.servers
  • Loading branch information
turt2live authored Feb 22, 2019
2 parents 86c49d5 + 892802e commit d6f8f8a
Showing 1 changed file with 2 additions and 2 deletions.
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

0 comments on commit d6f8f8a

Please sign in to comment.