crypto: Remove one-time keys after a inbound session was created successfully.
parent
c282d9fabc
commit
7577ddfc00
|
@ -199,6 +199,14 @@ impl Account {
|
||||||
.await
|
.await
|
||||||
.create_inbound_session_from(their_identity_key, message)?;
|
.create_inbound_session_from(their_identity_key, message)?;
|
||||||
|
|
||||||
|
self.inner
|
||||||
|
.lock()
|
||||||
|
.await
|
||||||
|
.remove_one_time_keys(&session)
|
||||||
|
.expect(
|
||||||
|
"Session was successfully created but the account doesn't hold a matching one-time key",
|
||||||
|
);
|
||||||
|
|
||||||
let now = Instant::now();
|
let now = Instant::now();
|
||||||
|
|
||||||
Ok(Session {
|
Ok(Session {
|
||||||
|
|
Loading…
Reference in New Issue