diff options
Diffstat (limited to '')
-rw-r--r-- | src/main/java/eu/siacs/conversations/entities/Contact.java | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/src/main/java/eu/siacs/conversations/entities/Contact.java b/src/main/java/eu/siacs/conversations/entities/Contact.java index fa6c79ece..f48a052f8 100644 --- a/src/main/java/eu/siacs/conversations/entities/Contact.java +++ b/src/main/java/eu/siacs/conversations/entities/Contact.java @@ -148,7 +148,7 @@ public class Contact implements ListItem, Blockable { for (final String group : getGroups()) { tags.add(new Tag(group, UIHelper.getColorForName(group))); } - Presence.Status status = getMostAvailableStatus(); + Presence.Status status = getShownStatus(); if (status != Presence.Status.OFFLINE) { tags.add(UIHelper.getTagForStatus(context, status)); } @@ -237,13 +237,8 @@ public class Contact implements ListItem, Blockable { this.resetOption(Options.PENDING_SUBSCRIPTION_REQUEST); } - public Presence.Status getMostAvailableStatus() { - Presence p = this.presences.getMostAvailablePresence(); - if (p == null) { - return Presence.Status.OFFLINE; - } - - return p.getStatus(); + public Presence.Status getShownStatus() { + return this.presences.getShownStatus(); } public boolean setPhotoUri(String uri) { |