mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2024-10-01 11:49:51 -04:00
fix flakes
This commit is contained in:
parent
234611f347
commit
982edca380
@ -202,13 +202,15 @@ class EndToEndRoomKeyStore(SQLBaseStore):
|
|||||||
"SELECT MAX(version) FROM e2e_room_keys_versions WHERE user_id=?",
|
"SELECT MAX(version) FROM e2e_room_keys_versions WHERE user_id=?",
|
||||||
(user_id,)
|
(user_id,)
|
||||||
)
|
)
|
||||||
version = txn.fetchone()[0]
|
this_version = txn.fetchone()[0]
|
||||||
|
else:
|
||||||
|
this_version = version
|
||||||
|
|
||||||
return self._simple_select_one_txn(
|
return self._simple_select_one_txn(
|
||||||
table="e2e_room_keys_versions",
|
table="e2e_room_keys_versions",
|
||||||
keyvalues={
|
keyvalues={
|
||||||
"user_id": user_id,
|
"user_id": user_id,
|
||||||
"version": version,
|
"version": this_version,
|
||||||
},
|
},
|
||||||
retcols=(
|
retcols=(
|
||||||
"user_id",
|
"user_id",
|
||||||
|
Loading…
Reference in New Issue
Block a user