From 892802e9ccc04d6cb663bdb15e43d842b8e8d870 Mon Sep 17 00:00:00 2001 From: Alexander Terczka Date: Fri, 22 Feb 2019 02:40:01 +0100 Subject: [PATCH] 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. --- src/components/views/directory/NetworkDropdown.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/views/directory/NetworkDropdown.js b/src/components/views/directory/NetworkDropdown.js index 864a1be233..c70cdeb0de 100644 --- a/src/components/views/directory/NetworkDropdown.js +++ b/src/components/views/directory/NetworkDropdown.js @@ -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) {