From f2283778f6ef855a8ca91fb35fd737a8422c7d4d Mon Sep 17 00:00:00 2001 From: Samuel Hand Date: Wed, 18 Jul 2018 21:42:33 +0100 Subject: [PATCH] only allow OMEMO in members only MUCs --- plugins/omemo/src/manager.vala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/omemo/src/manager.vala b/plugins/omemo/src/manager.vala index 492cfeba..aa2a5351 100644 --- a/plugins/omemo/src/manager.vala +++ b/plugins/omemo/src/manager.vala @@ -337,7 +337,7 @@ public class Manager : StreamInteractionModule, Object { if (stream_interactor.get_module(MucManager.IDENTITY).is_groupchat(conversation.counterpart, conversation.account)){ Xep.Muc.Flag? flag = stream.get_flag(Xep.Muc.Flag.IDENTITY); if (flag == null) return false; - if (flag.has_room_feature(conversation.counterpart, Xep.Muc.Feature.NON_ANONYMOUS)) { + if (flag.has_room_feature(conversation.counterpart, Xep.Muc.Feature.NON_ANONYMOUS) && flag.has_room_feature(conversation.counterpart, Xep.Muc.Feature.MEMBERS_ONLY)) { foreach(Jid jid in stream_interactor.get_module(MucManager.IDENTITY).get_offline_members(conversation.counterpart, conversation.account)) { if (!((!)module).is_known_address(jid.bare_jid)) return false; }