show xep-0172 nick only for contacts with mutual presence subscription

This commit is contained in:
Daniel Gultsch 2016-06-15 09:44:01 +02:00
parent 49de43b364
commit 73679b97f1

View File

@ -116,7 +116,7 @@ public class Contact implements ListItem, Blockable {
return this.systemName;
} else if (this.serverName != null) {
return this.serverName;
} else if (this.presenceName != null) {
} else if (this.presenceName != null && trusted()) {
return this.presenceName;
} else if (jid.hasLocalpart()) {
return jid.getLocalpart();