summary refs log tree commit diff
diff options
context:
space:
mode:
authorDavid Baker <dbkr@users.noreply.github.com>2017-11-02 17:23:17 +0000
committerGitHub <noreply@github.com>2017-11-02 17:23:17 +0000
commitf851bc8182abdd01af1fde40e1629a8d58bc9503 (patch)
treed2c6bd6e7eb8a30bb76f11037dc679c76fa42c79
parentMerge pull request #2629 from matrix-org/rav/register_inhibit_login (diff)
parentMake the get_rooms_in_group API more sane (diff)
downloadsynapse-f851bc8182abdd01af1fde40e1629a8d58bc9503.tar.xz
Merge pull request #2630 from matrix-org/luke/fix-rooms-in-group
Make the get_rooms_in_group API more sane
-rw-r--r--synapse/groups/groups_server.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/synapse/groups/groups_server.py b/synapse/groups/groups_server.py
index e21ac8e49e..addc70ce94 100644
--- a/synapse/groups/groups_server.py
+++ b/synapse/groups/groups_server.py
@@ -507,7 +507,6 @@ class GroupsServerHandler(object):
         chunk = []
         for room_result in room_results:
             room_id = room_result["room_id"]
-            is_public = room_result["is_public"]
 
             joined_users = yield self.store.get_users_in_room(room_id)
             entry = yield self.room_list_handler.generate_room_entry(
@@ -518,8 +517,7 @@ class GroupsServerHandler(object):
             if not entry:
                 continue
 
-            if not is_public:
-                entry["is_public"] = False
+            entry["is_public"] = bool(room_result["is_public"])
 
             chunk.append(entry)