mirror of
https://github.com/element-hq/synapse.git
synced 2026-11-12 14:18:28 +00:00
Convert simple_select_one_txn and simple_select_one to return tuples. (#16612)
This commit is contained in:
1 parent
ff716b483b
commit
ab3f1b3b53
33 files changed
+283
-279
No files matched your search
@@ -1860,7 +1860,8 @@ class PublicRoomListManager:
|
||||
if not room:
|
||||
return False
|
||||
|
||||
return room.get("is_public", False)
|
||||
# The first item is whether the room is public.
|
||||
return room[0]
|
||||
|
||||
async def add_room_to_public_room_list(self, room_id: str) -> None:
|
||||
"""Publishes a room to the public room list.
|
||||
|
||||
Reference in new issue
Block a user