From 85dc0c284d6e11af14bce6cf772f96685e90db57 Mon Sep 17 00:00:00 2001 From: Daniel Gultsch Date: Fri, 14 Jul 2017 09:08:39 +0200 Subject: [PATCH] made omemo always available but in public mucs --- .../eu/siacs/conversations/crypto/axolotl/AxolotlService.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 412214b35..46ff7e5ba 100644 --- a/src/main/java/eu/siacs/conversations/crypto/axolotl/AxolotlService.java +++ b/src/main/java/eu/siacs/conversations/crypto/axolotl/AxolotlService.java @@ -764,7 +764,7 @@ public class AxolotlService implements OnAdvancedStreamFeaturesLoaded { } public boolean isConversationAxolotlCapable(Conversation conversation) { - return isConversationAxolotlCapableDetailed(conversation).first == AxolotlCapability.FULL; + return conversation.getMode() == Conversation.MODE_SINGLE || (conversation.getMucOptions().nonanonymous() && conversation.getMucOptions().membersOnly()); } public Pair isConversationAxolotlCapableDetailed(Conversation conversation) {