Decrank last commit
This commit is contained in:
parent
4ad613f6be
commit
e4df0e189d
|
@ -150,7 +150,8 @@ class EndToEndKeyStore(SQLBaseStore):
|
|||
new_keys = [] # Keys that we need to insert
|
||||
for algorithm, key_id, json_bytes in key_list:
|
||||
ex_bytes = existing_key_map.get((algorithm, key_id), None)
|
||||
if ex_bytes and json_bytes != ex_bytes:
|
||||
if ex_bytes:
|
||||
if json_bytes != ex_bytes:
|
||||
raise SynapseError(
|
||||
400, "One time key with key_id %r already exists" % (key_id,)
|
||||
)
|
||||
|
|
Loading…
Reference in New Issue