aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/java
diff options
context:
space:
mode:
authorChristian Schneppe <christian@pix-art.de>2018-02-02 22:08:42 +0100
committerChristian Schneppe <christian@pix-art.de>2018-02-02 22:08:42 +0100
commita12f791761c70a4464d8d9009397f38f260cae25 (patch)
treec41c6c8e9935d7ab9ab327fa53b66b55dd92d741 /src/main/java
parent18c5fac826bdd1da55c967836687418b0ace44bb (diff)
reorder context menu entries for ConferenceDetailsActivity and make membership and ban options visible in standardmode and make adminprevileges visible in advanced mode
Diffstat (limited to 'src/main/java')
-rw-r--r--src/main/java/de/pixart/messenger/ui/ConferenceDetailsActivity.java14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/main/java/de/pixart/messenger/ui/ConferenceDetailsActivity.java b/src/main/java/de/pixart/messenger/ui/ConferenceDetailsActivity.java
index 116f174db..6c41187e0 100644
--- a/src/main/java/de/pixart/messenger/ui/ConferenceDetailsActivity.java
+++ b/src/main/java/de/pixart/messenger/ui/ConferenceDetailsActivity.java
@@ -459,20 +459,20 @@ public class ConferenceDetailsActivity extends XmppActivity implements OnConvers
if (self.getAffiliation().ranks(MucOptions.Affiliation.ADMIN) &&
self.getAffiliation().outranks(user.getAffiliation())) {
if (mAdvancedMode) {
- if (user.getAffiliation() == MucOptions.Affiliation.NONE) {
- giveMembership.setVisible(true);
+ if (user.getAffiliation() != MucOptions.Affiliation.ADMIN) {
+ giveAdminPrivileges.setVisible(true);
} else {
- removeMembership.setVisible(true);
+ removeAdminPrivileges.setVisible(true);
}
- banFromConference.setVisible(true);
} else {
removeFromRoom.setVisible(true);
}
- if (user.getAffiliation() != MucOptions.Affiliation.ADMIN) {
- giveAdminPrivileges.setVisible(true);
+ if (user.getAffiliation() == MucOptions.Affiliation.NONE) {
+ giveMembership.setVisible(true);
} else {
- removeAdminPrivileges.setVisible(true);
+ removeMembership.setVisible(true);
}
+ banFromConference.setVisible(true);
}
} else {
MenuItem sendPrivateMessage = menu.findItem(R.id.send_private_message);