From de9bf4bb472d0ae0227069b9b85fac0b6a8fd2f7 Mon Sep 17 00:00:00 2001 From: David Baker Date: Tue, 4 Oct 2016 15:18:07 +0100 Subject: [PATCH] Actually use variable --- src/components/structures/RoomDirectory.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/structures/RoomDirectory.js b/src/components/structures/RoomDirectory.js index 3117d52ff..ccb4c794c 100644 --- a/src/components/structures/RoomDirectory.js +++ b/src/components/structures/RoomDirectory.js @@ -509,7 +509,7 @@ module.exports = React.createClass({ // as long as it has no domain (which we assume to mean it's // there is only one possible instance). if (the_instance.fields.domain === undefined && network_info.domain === undefined) { - matched_instance = this.protocols[network_info.protocol].instances[0]; + matched_instance = the_instance; } } else if (network_info.domain) { // otherwise, we look for one with a matching domain.