aboutsummaryrefslogtreecommitdiffstats
path: root/src/eu/siacs/conversations/ui/ContactDetailsActivity.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/eu/siacs/conversations/ui/ContactDetailsActivity.java')
-rw-r--r--src/eu/siacs/conversations/ui/ContactDetailsActivity.java6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/eu/siacs/conversations/ui/ContactDetailsActivity.java b/src/eu/siacs/conversations/ui/ContactDetailsActivity.java
index 86535ba1a..1ed3fa131 100644
--- a/src/eu/siacs/conversations/ui/ContactDetailsActivity.java
+++ b/src/eu/siacs/conversations/ui/ContactDetailsActivity.java
@@ -227,7 +227,11 @@ public class ContactDetailsActivity extends XmppActivity {
status.setTextColor(0xFFe92727);
break;
}
- contactJid.setText(contact.getJid());
+ if (contact.getPresences().size() > 1) {
+ contactJid.setText(contact.getJid()+" ("+contact.getPresences().size()+")");
+ } else {
+ contactJid.setText(contact.getJid());
+ }
accountJid.setText(contact.getAccount().getJid());
UIHelper.prepareContactBadge(this, badge, contact, getApplicationContext());