Don't manually add keys to the store

There is no need to preemptively add the keys to the store oneself.
SessionBuilder will take care of this for us. What's more, this will
prevent IdentityKeys from otherwise invalid bundles to show up in our
UI.
This commit is contained in:
Andreas Straub 2015-09-06 15:12:33 +02:00
parent 2c4a6b0912
commit 2bb033267b
1 changed files with 0 additions and 2 deletions

View File

@ -536,8 +536,6 @@ public class AxolotlService {
bundle.getSignedPreKeyId(), bundle.getSignedPreKey(), bundle.getSignedPreKeyId(), bundle.getSignedPreKey(),
bundle.getSignedPreKeySignature(), bundle.getIdentityKey()); bundle.getSignedPreKeySignature(), bundle.getIdentityKey());
axolotlStore.saveIdentity(address.getName(), bundle.getIdentityKey());
try { try {
SessionBuilder builder = new SessionBuilder(axolotlStore, address); SessionBuilder builder = new SessionBuilder(axolotlStore, address);
builder.process(preKeyBundle); builder.process(preKeyBundle);