Skip to content
Snippets Groups Projects
Commit a34c586a authored by Luke Barnard's avatar Luke Barnard
Browse files

Make the get_rooms_in_group API more sane

Return entries with is_public = True when they're public and is_public = False otherwise.
parent 4a6754ba
No related branches found
No related tags found
No related merge requests found
......@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment