diff options
author | David Robertson <davidr@element.io> | 2022-08-31 11:38:16 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-31 10:38:16 +0000 |
commit | a160406d245cb84b48fa67fe3ee73f0cffceb495 (patch) | |
tree | b21f892e4590f2f1655690306a6898c2d9d242c9 /synapse | |
parent | Change dpkg-statoverride to use --force-statoverride-add (#13638) (diff) | |
download | synapse-a160406d245cb84b48fa67fe3ee73f0cffceb495.tar.xz |
Fix admin List Room API return type on sqlite (#13509)
Diffstat (limited to 'synapse')
-rw-r--r-- | synapse/storage/databases/main/room.py | 6 |
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], |