made omemo always available but in public mucs

This commit is contained in:
Daniel Gultsch 2017-07-14 09:08:39 +02:00
parent 002dbf2e17
commit 85dc0c284d

View file

@ -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<AxolotlCapability,Jid> isConversationAxolotlCapableDetailed(Conversation conversation) {