mirror of
https://github.com/matrix-org/dendrite.git
synced 2025-12-12 17:33:09 -06:00
one_time_key inner multiple bug
This commit is contained in:
parent
d51521f498
commit
3ce007c3f8
|
|
@ -155,10 +155,10 @@ func (s *keyStatements) selectSingleKey(
|
|||
&holder.KeyAlgorithm,
|
||||
&holder.Signature,
|
||||
); err != nil {
|
||||
deleteStmt := s.deleteSingleKeyStmt
|
||||
_, err = deleteStmt.ExecContext(ctx, userID, deviceID, algorithm, holder.KeyID)
|
||||
return holder, err
|
||||
}
|
||||
deleteStmt := s.deleteSingleKeyStmt
|
||||
_, err = deleteStmt.ExecContext(ctx, userID, deviceID, algorithm, holder.KeyID)
|
||||
return holder, err
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue