just xmpp things

This commit is contained in:
Daniel Gultsch 2021-01-06 11:46:09 +01:00
parent 372ddbfb49
commit d0a2f1f45f
1 changed files with 5 additions and 2 deletions

View File

@ -158,8 +158,11 @@ public class MucOptions {
} }
public boolean allowInvites() { public boolean allowInvites() {
final Field field = getRoomInfoForm().getFieldByName("muc#roomconfig_allowinvites"); final Field allowInvitesField = getRoomInfoForm().getFieldByName("muc#roomconfig_allowinvites");
return field != null && "1".equals(field.getValue()); 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;
} }
public boolean canChangeSubject() { public boolean canChangeSubject() {