From 260b203ea359c68b565afe8d13941055a2b137e8 Mon Sep 17 00:00:00 2001 From: Daniel Gultsch Date: Tue, 19 Jan 2021 08:55:22 +0100 Subject: [PATCH] Revert "just xmpp things" This reverts commit d0a2f1f45f848076d9ea834f52218aad3427c618. --- .../java/eu/siacs/conversations/entities/MucOptions.java | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/main/java/eu/siacs/conversations/entities/MucOptions.java b/src/main/java/eu/siacs/conversations/entities/MucOptions.java index b2b4d14f6..57fc5b1d7 100644 --- a/src/main/java/eu/siacs/conversations/entities/MucOptions.java +++ b/src/main/java/eu/siacs/conversations/entities/MucOptions.java @@ -158,11 +158,8 @@ public class MucOptions { } public boolean allowInvites() { - final Field allowInvitesField = getRoomInfoForm().getFieldByName("muc#roomconfig_allowinvites"); - final boolean allowInvites = allowInvitesField != null && "1".equals(allowInvitesField.getValue()); - final Field allowMemberInvitesField = getRoomInfoForm().getFieldByName("muc#roomconfig_allowmemberinvites"); - final boolean allowMemberInvites = allowMemberInvitesField != null && "1".equals(allowMemberInvitesField.getValue()); - return allowInvites || allowMemberInvites; + final Field field = getRoomInfoForm().getFieldByName("muc#roomconfig_allowinvites"); + return field != null && "1".equals(field.getValue()); } public boolean canChangeSubject() {