mirror of
https://github.com/oxen-io/session-android.git
synced 2025-04-23 06:41:29 +00:00
Delete pre-key record when establishing agreement.
This commit is contained in:
parent
43492b66c4
commit
c3b8b62d32
@ -132,6 +132,8 @@ public class KeyExchangeProcessor {
|
|||||||
remoteKeyRecord.save();
|
remoteKeyRecord.save();
|
||||||
sessionRecord.save();
|
sessionRecord.save();
|
||||||
|
|
||||||
|
PreKeyRecord.delete(context, preKeyId);
|
||||||
|
|
||||||
DatabaseFactory.getIdentityDatabase(context)
|
DatabaseFactory.getIdentityDatabase(context)
|
||||||
.saveIdentity(masterSecret, recipient, remoteIdentity);
|
.saveIdentity(masterSecret, recipient, remoteIdentity);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user