show xep-0172 nick only for contacts with mutual presence subscription
This commit is contained in:
parent
49de43b364
commit
73679b97f1
|
@ -116,7 +116,7 @@ public class Contact implements ListItem, Blockable {
|
||||||
return this.systemName;
|
return this.systemName;
|
||||||
} else if (this.serverName != null) {
|
} else if (this.serverName != null) {
|
||||||
return this.serverName;
|
return this.serverName;
|
||||||
} else if (this.presenceName != null) {
|
} else if (this.presenceName != null && trusted()) {
|
||||||
return this.presenceName;
|
return this.presenceName;
|
||||||
} else if (jid.hasLocalpart()) {
|
} else if (jid.hasLocalpart()) {
|
||||||
return jid.getLocalpart();
|
return jid.getLocalpart();
|
||||||
|
|
Loading…
Reference in New Issue