From de7631e300eb9e578336d642dd279faecdb09391 Mon Sep 17 00:00:00 2001 From: lookshe Date: Sun, 17 Apr 2016 17:02:50 +0200 Subject: @Overrides added --- .../eu/siacs/conversations/crypto/axolotl/AxolotlServiceImpl.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/main/java/eu/siacs/conversations/crypto/axolotl/AxolotlServiceImpl.java b/src/main/java/eu/siacs/conversations/crypto/axolotl/AxolotlServiceImpl.java index 364898b6..281eb91f 100644 --- a/src/main/java/eu/siacs/conversations/crypto/axolotl/AxolotlServiceImpl.java +++ b/src/main/java/eu/siacs/conversations/crypto/axolotl/AxolotlServiceImpl.java @@ -243,10 +243,12 @@ public class AxolotlServiceImpl implements OnAdvancedStreamFeaturesLoaded, Axolo return keys; } + @Override public long getNumTrustedKeys(Jid jid) { return axolotlStore.getContactNumTrustedKeys(jid.toBareJid().toString()); } + @Override public boolean anyTargetHasNoTrustedKeys(List jids) { for(Jid jid : jids) { if (axolotlStore.getContactNumTrustedKeys(jid.toBareJid().toString()) == 0) { @@ -614,6 +616,7 @@ public class AxolotlServiceImpl implements OnAdvancedStreamFeaturesLoaded, Axolo }); } + @Override public boolean isConversationAxolotlCapable(Conversation conversation) { final List jids = getCryptoTargets(conversation); for(Jid jid : jids) { @@ -624,6 +627,7 @@ public class AxolotlServiceImpl implements OnAdvancedStreamFeaturesLoaded, Axolo return jids.size() > 0; } + @Override public List getCryptoTargets(Conversation conversation) { final List jids; if (conversation.getMode() == Conversation.MODE_SINGLE) { @@ -875,6 +879,7 @@ public class AxolotlServiceImpl implements OnAdvancedStreamFeaturesLoaded, Axolo return verified; } + @Override public boolean hasPendingKeyFetches(Account account, List jids) { AxolotlAddress ownAddress = new AxolotlAddress(account.getJid().toBareJid().toString(), 0); if (fetchStatusMap.getAll(ownAddress).containsValue(FetchStatus.PENDING)) { @@ -952,6 +957,7 @@ public class AxolotlServiceImpl implements OnAdvancedStreamFeaturesLoaded, Axolo }); } + @Override public void prepareKeyTransportMessage(final Conversation conversation, final OnMessageCreatedCallback onMessageCreatedCallback) { executor.execute(new Runnable() { @Override -- cgit v1.2.3