aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Gultsch <daniel@gultsch.de>2017-12-03 18:09:14 +0100
committerDaniel Gultsch <daniel@gultsch.de>2017-12-03 18:09:14 +0100
commit95553750a34dd664f6c9fc94289866ff0144792b (patch)
treeadd784d72ba910169ee92d7b8c7aeb970c2a1e1b
parent208de32790e0bb4a3fe1d3aefae36a7412548698 (diff)
Conference Options: fix context menus for people not in roster
-rw-r--r--src/main/java/eu/siacs/conversations/ui/ConferenceDetailsActivity.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/eu/siacs/conversations/ui/ConferenceDetailsActivity.java b/src/main/java/eu/siacs/conversations/ui/ConferenceDetailsActivity.java
index c2617c7..294db3e 100644
--- a/src/main/java/eu/siacs/conversations/ui/ConferenceDetailsActivity.java
+++ b/src/main/java/eu/siacs/conversations/ui/ConferenceDetailsActivity.java
@@ -366,7 +366,7 @@ public class ConferenceDetailsActivity extends XmppActivity implements OnConvers
this.mSelectedUser = user;
String name;
final Contact contact = user.getContact();
- if (contact != null) {
+ if (contact != null && contact.showInRoster()) {
name = contact.getDisplayName();
} else if (user.getRealJid() != null){
name = user.getRealJid().toBareJid().toString();
@@ -385,7 +385,7 @@ public class ConferenceDetailsActivity extends XmppActivity implements OnConvers
MenuItem banFromConference = menu.findItem(R.id.ban_from_conference);
MenuItem invite = menu.findItem(R.id.invite);
startConversation.setVisible(true);
- if (contact != null) {
+ if (contact != null && contact.showInRoster()) {
showContactDetails.setVisible(!contact.isSelf());
}
if (user.getRole() == MucOptions.Role.NONE) {