diff options
author | Andrew Morgan <1342360+anoadragon453@users.noreply.github.com> | 2020-03-27 13:30:22 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-27 13:30:22 +0000 |
commit | 12aa5a7fa761a729364d324405a033cf78da26de (patch) | |
tree | 155476cfc92ee8f1786065dbe348ff20cb74821c /synapse/storage/data_stores | |
parent | Only import sqlite3 when type checking (#7155) (diff) | |
download | synapse-12aa5a7fa761a729364d324405a033cf78da26de.tar.xz |
Ensure is_verified on /_matrix/client/r0/room_keys/keys is a boolean (#7150)
Diffstat (limited to 'synapse/storage/data_stores')
-rw-r--r-- | synapse/storage/data_stores/main/e2e_room_keys.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/synapse/storage/data_stores/main/e2e_room_keys.py b/synapse/storage/data_stores/main/e2e_room_keys.py index 84594cf0a9..23f4570c4b 100644 --- a/synapse/storage/data_stores/main/e2e_room_keys.py +++ b/synapse/storage/data_stores/main/e2e_room_keys.py @@ -146,7 +146,8 @@ class EndToEndRoomKeyStore(SQLBaseStore): room_entry["sessions"][row["session_id"]] = { "first_message_index": row["first_message_index"], "forwarded_count": row["forwarded_count"], - "is_verified": row["is_verified"], + # is_verified must be returned to the client as a boolean + "is_verified": bool(row["is_verified"]), "session_data": json.loads(row["session_data"]), } |