aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/java/de
diff options
context:
space:
mode:
authorChristian Schneppe <christian@pix-art.de>2017-09-17 22:16:59 +0200
committerChristian Schneppe <christian@pix-art.de>2017-09-17 22:16:59 +0200
commit301fb5c252ad4575db6cde2f0134b7be9d5a4f7b (patch)
tree8e89033d9b3ee74cb0f97d2abeeeac802cf77fe1 /src/main/java/de
parent814b5443205e1755ecd76dac0a7f37e89b3d1137 (diff)
show jid in ContactDetails if contact is not on the same server
Diffstat (limited to 'src/main/java/de')
-rw-r--r--src/main/java/de/pixart/messenger/ui/ContactDetailsActivity.java6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/main/java/de/pixart/messenger/ui/ContactDetailsActivity.java b/src/main/java/de/pixart/messenger/ui/ContactDetailsActivity.java
index 81967bfa7..ae2281214 100644
--- a/src/main/java/de/pixart/messenger/ui/ContactDetailsActivity.java
+++ b/src/main/java/de/pixart/messenger/ui/ContactDetailsActivity.java
@@ -435,7 +435,11 @@ public class ContactDetailsActivity extends OmemoActivity implements OnAccountUp
invalidateOptionsMenu();
setTitle(contact.getDisplayName());
- contactDisplayName.setText(contact.getDisplayName());
+ if (contact.getServer().toString().toLowerCase().equals(accountJid.getDomainpart().toLowerCase())) {
+ contactDisplayName.setText(contact.getDisplayName());
+ } else {
+ contactDisplayName.setText(contact.getDisplayJid());
+ }
if (contact.showInRoster()) {
send.setVisibility(View.VISIBLE);
receive.setVisibility(View.VISIBLE);