ban can be disabled in Config.java (#3016)
This commit is contained in:
parent
c113f37713
commit
1fcd69ce40
|
@ -52,6 +52,8 @@ public final class Config {
|
|||
|
||||
public static final boolean ALWAYS_NOTIFY_BY_DEFAULT = false;
|
||||
|
||||
public static final boolean DISABLE_BAN = false; // disables the ability to ban users from rooms
|
||||
|
||||
public static final int PING_MAX_INTERVAL = 300;
|
||||
public static final int IDLE_PING_INTERVAL = 600; //540 is minimum according to docs;
|
||||
public static final int PING_MIN_INTERVAL = 30;
|
||||
|
|
|
@ -378,9 +378,13 @@ public class ConferenceDetailsActivity extends XmppActivity implements OnConvers
|
|||
} else {
|
||||
removeMembership.setVisible(true);
|
||||
}
|
||||
banFromConference.setVisible(true);
|
||||
if (!Config.DISABLE_BAN) {
|
||||
banFromConference.setVisible(true);
|
||||
}
|
||||
} else {
|
||||
removeFromRoom.setVisible(true);
|
||||
if (!Config.DISABLE_BAN || mConversation.getMucOptions().membersOnly()) {
|
||||
removeFromRoom.setVisible(true);
|
||||
}
|
||||
}
|
||||
if (user.getAffiliation() != MucOptions.Affiliation.ADMIN) {
|
||||
giveAdminPrivileges.setVisible(true);
|
||||
|
|
Loading…
Reference in New Issue