From 73679b97f1264f6c2fe7f06a46f91611d9d96217 Mon Sep 17 00:00:00 2001 From: Daniel Gultsch Date: Wed, 15 Jun 2016 09:44:01 +0200 Subject: [PATCH] show xep-0172 nick only for contacts with mutual presence subscription --- src/main/java/eu/siacs/conversations/entities/Contact.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/eu/siacs/conversations/entities/Contact.java b/src/main/java/eu/siacs/conversations/entities/Contact.java index 70878a734..9f2dfba96 100644 --- a/src/main/java/eu/siacs/conversations/entities/Contact.java +++ b/src/main/java/eu/siacs/conversations/entities/Contact.java @@ -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();