aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy-gtk
diff options
context:
space:
mode:
Diffstat (limited to 'libempathy-gtk')
-rw-r--r--libempathy-gtk/gossip-ui-utils.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/libempathy-gtk/gossip-ui-utils.c b/libempathy-gtk/gossip-ui-utils.c
index f834ceb0c..b17e5776b 100644
--- a/libempathy-gtk/gossip-ui-utils.c
+++ b/libempathy-gtk/gossip-ui-utils.c
@@ -383,15 +383,12 @@ gossip_icon_name_for_contact (GossipContact *contact)
EMPATHY_IMAGE_OFFLINE);
presence = gossip_contact_get_presence (contact);
-
if (presence) {
return gossip_icon_name_for_presence (presence);
}
subscription = gossip_contact_get_subscription (contact);
-
- if (subscription != GOSSIP_SUBSCRIPTION_BOTH &&
- subscription != GOSSIP_SUBSCRIPTION_TO) {
+ if (!(subscription & GOSSIP_SUBSCRIPTION_FROM)) {
return EMPATHY_IMAGE_PENDING;
}