aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAndreas Straub <andy@strb.org>2015-09-06 15:12:33 +0200
committerAndreas Straub <andy@strb.org>2015-09-06 15:15:57 +0200
commit2bb033267b80f8ee030a20e5c447df6a22226f61 (patch)
tree3e9c3e9e14439824e985d833926e77debcf05108 /src
parent2c4a6b09127c8e6776020cd90c782ab950a70324 (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')
-rw-r--r--src/main/java/eu/siacs/conversations/crypto/axolotl/AxolotlService.java2
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);