diff options
author | Christian Schneppe <christian@pix-art.de> | 2017-12-10 21:04:15 +0100 |
---|---|---|
committer | Christian Schneppe <christian@pix-art.de> | 2017-12-10 21:04:15 +0100 |
commit | 27bbc86655e26e63d63f424d838129bcab42ed2e (patch) | |
tree | 62a38e318127f42199dc385aaef786f4080647a2 /src | |
parent | 3c38201c20c2d591511723482e18d3b756496b48 (diff) |
Conference Options: fix context menus for people not in roster
Diffstat (limited to '')
-rw-r--r-- | src/main/java/de/pixart/messenger/ui/ConferenceDetailsActivity.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/de/pixart/messenger/ui/ConferenceDetailsActivity.java b/src/main/java/de/pixart/messenger/ui/ConferenceDetailsActivity.java index b6f151b5d..3479e7081 100644 --- a/src/main/java/de/pixart/messenger/ui/ConferenceDetailsActivity.java +++ b/src/main/java/de/pixart/messenger/ui/ConferenceDetailsActivity.java @@ -386,7 +386,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(); @@ -618,7 +618,7 @@ public class ConferenceDetailsActivity extends XmppActivity implements OnConvers final Contact contact = user.getContact(); View view = inflater.inflate(R.layout.contact, membersView, false); this.setListItemBackgroundOnView(view); - if (contact != null) { + if (contact != null && contact.showInRoster()) { view.setOnClickListener(new OnClickListener() { @Override public void onClick(View view) { |