Conference Options: fix context menus for people not in roster
This commit is contained in:
parent
208de32790
commit
95553750a3
|
@ -366,7 +366,7 @@ public class ConferenceDetailsActivity extends XmppActivity implements OnConvers
|
||||||
this.mSelectedUser = user;
|
this.mSelectedUser = user;
|
||||||
String name;
|
String name;
|
||||||
final Contact contact = user.getContact();
|
final Contact contact = user.getContact();
|
||||||
if (contact != null) {
|
if (contact != null && contact.showInRoster()) {
|
||||||
name = contact.getDisplayName();
|
name = contact.getDisplayName();
|
||||||
} else if (user.getRealJid() != null){
|
} else if (user.getRealJid() != null){
|
||||||
name = user.getRealJid().toBareJid().toString();
|
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 banFromConference = menu.findItem(R.id.ban_from_conference);
|
||||||
MenuItem invite = menu.findItem(R.id.invite);
|
MenuItem invite = menu.findItem(R.id.invite);
|
||||||
startConversation.setVisible(true);
|
startConversation.setVisible(true);
|
||||||
if (contact != null) {
|
if (contact != null && contact.showInRoster()) {
|
||||||
showContactDetails.setVisible(!contact.isSelf());
|
showContactDetails.setVisible(!contact.isSelf());
|
||||||
}
|
}
|
||||||
if (user.getRole() == MucOptions.Role.NONE) {
|
if (user.getRole() == MucOptions.Role.NONE) {
|
||||||
|
|
Loading…
Reference in New Issue