aboutsummaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorSamuel Hand <samuel.hand@openmailbox.org>2018-07-18 21:42:33 +0100
committerSamuel Hand <samuel.hand@openmailbox.org>2018-07-18 21:42:33 +0100
commitf2283778f6ef855a8ca91fb35fd737a8422c7d4d (patch)
tree3491f532defcc09ec4f3547bcb431a0776d7d639 /plugins
parentc299a12b8e403e0c8e03d54d8b0b25029ca94b45 (diff)
downloaddino-f2283778f6ef855a8ca91fb35fd737a8422c7d4d.tar.gz
dino-f2283778f6ef855a8ca91fb35fd737a8422c7d4d.zip
only allow OMEMO in members only MUCs
Diffstat (limited to 'plugins')
-rw-r--r--plugins/omemo/src/manager.vala2
1 files changed, 1 insertions, 1 deletions
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;
}