diff options
author | Andreas Straub <andy@strb.org> | 2015-09-06 15:12:33 +0200 |
---|---|---|
committer | Andreas Straub <andy@strb.org> | 2015-09-06 15:15:57 +0200 |
commit | 2bb033267b80f8ee030a20e5c447df6a22226f61 (patch) | |
tree | 3e9c3e9e14439824e985d833926e77debcf05108 /src/main/java/eu/siacs/conversations/crypto | |
parent | 2c4a6b09127c8e6776020cd90c782ab950a70324 (diff) |
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.
Diffstat (limited to 'src/main/java/eu/siacs/conversations/crypto')
-rw-r--r-- | src/main/java/eu/siacs/conversations/crypto/axolotl/AxolotlService.java | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/main/java/eu/siacs/conversations/crypto/axolotl/AxolotlService.java b/src/main/java/eu/siacs/conversations/crypto/axolotl/AxolotlService.java index 77c9d9d7..e4c49e7c 100644 --- a/src/main/java/eu/siacs/conversations/crypto/axolotl/AxolotlService.java +++ b/src/main/java/eu/siacs/conversations/crypto/axolotl/AxolotlService.java @@ -536,8 +536,6 @@ public class AxolotlService { bundle.getSignedPreKeyId(), bundle.getSignedPreKey(), bundle.getSignedPreKeySignature(), bundle.getIdentityKey()); - axolotlStore.saveIdentity(address.getName(), bundle.getIdentityKey()); - try { SessionBuilder builder = new SessionBuilder(axolotlStore, address); builder.process(preKeyBundle); |