summary refs log tree commit diff
path: root/synapse
diff options
context:
space:
mode:
authorandrew do <dohandrew@protonmail.com>2022-07-12 07:30:53 -0700
committerGitHub <noreply@github.com>2022-07-12 15:30:53 +0100
commit2d82cdafd23b5bcb597e776537e23c367e18d4ac (patch)
tree75be376d83ac4bbad4af6dbb9d8c511c9c41d1a3 /synapse
parentUpdate changelog once more (diff)
downloadsynapse-2d82cdafd23b5bcb597e776537e23c367e18d4ac.tar.xz
expose whether a room is a space in the Admin API (#13208)
Diffstat (limited to 'synapse')
-rw-r--r--synapse/storage/databases/main/room.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/synapse/storage/databases/main/room.py b/synapse/storage/databases/main/room.py

index 13d6a1d5c0..d6d485507b 100644 --- a/synapse/storage/databases/main/room.py +++ b/synapse/storage/databases/main/room.py
@@ -175,7 +175,7 @@ class RoomWorkerStore(CacheInvalidationWorkerStore): rooms.creator, state.encryption, state.is_federatable AS federatable, rooms.is_public AS public, state.join_rules, state.guest_access, state.history_visibility, curr.current_state_events AS state_events, - state.avatar, state.topic + state.avatar, state.topic, state.room_type FROM rooms LEFT JOIN room_stats_state state USING (room_id) LEFT JOIN room_stats_current curr USING (room_id) @@ -596,7 +596,8 @@ class RoomWorkerStore(CacheInvalidationWorkerStore): SELECT state.room_id, state.name, state.canonical_alias, curr.joined_members, curr.local_users_in_room, rooms.room_version, rooms.creator, state.encryption, state.is_federatable, rooms.is_public, state.join_rules, - state.guest_access, state.history_visibility, curr.current_state_events + state.guest_access, state.history_visibility, curr.current_state_events, + state.room_type FROM room_stats_state state INNER JOIN room_stats_current curr USING (room_id) INNER JOIN rooms USING (room_id) @@ -646,6 +647,7 @@ class RoomWorkerStore(CacheInvalidationWorkerStore): "guest_access": room[11], "history_visibility": room[12], "state_events": room[13], + "room_type": room[14], } )