summary refs log tree commit diff
path: root/synapse/storage/databases
diff options
context:
space:
mode:
authorDavid Robertson <davidr@element.io>2022-08-31 11:38:16 +0100
committerGitHub <noreply@github.com>2022-08-31 10:38:16 +0000
commita160406d245cb84b48fa67fe3ee73f0cffceb495 (patch)
treeb21f892e4590f2f1655690306a6898c2d9d242c9 /synapse/storage/databases
parentChange dpkg-statoverride to use --force-statoverride-add (#13638) (diff)
downloadsynapse-a160406d245cb84b48fa67fe3ee73f0cffceb495.tar.xz
Fix admin List Room API return type on sqlite (#13509)
Diffstat (limited to 'synapse/storage/databases')
-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 b7d4baa6bb..367424b4a8 100644
--- a/synapse/storage/databases/main/room.py
+++ b/synapse/storage/databases/main/room.py
@@ -641,8 +641,10 @@ class RoomWorkerStore(CacheInvalidationWorkerStore):
                         "version": room[5],
                         "creator": room[6],
                         "encryption": room[7],
-                        "federatable": room[8],
-                        "public": room[9],
+                        # room_stats_state.federatable is an integer on sqlite.
+                        "federatable": bool(room[8]),
+                        # rooms.is_public is an integer on sqlite.
+                        "public": bool(room[9]),
                         "join_rules": room[10],
                         "guest_access": room[11],
                         "history_visibility": room[12],