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

Commit

Permalink
Merge pull request #2630 from matrix-org/luke/fix-rooms-in-group
Browse files Browse the repository at this point in the history
Make the get_rooms_in_group API more sane
  • Loading branch information
dbkr authored Nov 2, 2017
2 parents 9e09a18 + a34c586 commit f851bc8
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions synapse/groups/groups_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -507,7 +507,6 @@ def get_rooms_in_group(self, group_id, requester_user_id):
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(
Expand All @@ -518,8 +517,7 @@ def get_rooms_in_group(self, group_id, requester_user_id):
if not entry:
continue

if not is_public:
entry["is_public"] = False
entry["is_public"] = bool(room_result["is_public"])

chunk.append(entry)

Expand Down

0 comments on commit f851bc8

Please sign in to comment.