parent
864b0b3b3d
commit
260b203ea3
|
@ -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() {
|
||||
|
|
Loading…
Reference in a new issue