From e50b4d0315d8d51e5d47c629a32c044b11064b89 Mon Sep 17 00:00:00 2001 From: Amber Brown Date: Fri, 14 Dec 2018 02:45:19 +1100 Subject: [PATCH] fix and changelog --- changelog.d/4295.bugfix | 1 + synapse/storage/e2e_room_keys.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 changelog.d/4295.bugfix diff --git a/changelog.d/4295.bugfix b/changelog.d/4295.bugfix new file mode 100644 index 000000000000..e1603cbcda00 --- /dev/null +++ b/changelog.d/4295.bugfix @@ -0,0 +1 @@ +Fix deleting E2E room keys when using old SQLite versions. diff --git a/synapse/storage/e2e_room_keys.py b/synapse/storage/e2e_room_keys.py index 16b7f005aa9a..45cebe61d1fa 100644 --- a/synapse/storage/e2e_room_keys.py +++ b/synapse/storage/e2e_room_keys.py @@ -182,7 +182,7 @@ def delete_e2e_room_keys( keyvalues = { "user_id": user_id, - "version": version, + "version": int(version), } if room_id: keyvalues['room_id'] = room_id