Delete pre-key record when establishing agreement.

fork-5.53.8
Moxie Marlinspike 2013-08-21 17:37:25 -07:00
rodzic 43492b66c4
commit c3b8b62d32
1 zmienionych plików z 2 dodań i 0 usunięć

Wyświetl plik

@ -132,6 +132,8 @@ public class KeyExchangeProcessor {
remoteKeyRecord.save();
sessionRecord.save();
PreKeyRecord.delete(context, preKeyId);
DatabaseFactory.getIdentityDatabase(context)
.saveIdentity(masterSecret, recipient, remoteIdentity);
}