]> git.0d.be Git - empathy.git/blobdiff - libempathy-gtk/empathy-ui-utils.c
Completely reworked ContactList API. Fixes bug #471611, bug #467280, bug #459540...
[empathy.git] / libempathy-gtk / empathy-ui-utils.c
index fb491cc5ef0da93a0e2672b4f37e4e67ebc7cc0d..aedacb08be5b45190b1041e54675962a8c988580 100644 (file)
@@ -378,8 +378,7 @@ empathy_icon_name_for_presence (EmpathyPresence *presence)
 const gchar *
 empathy_icon_name_for_contact (EmpathyContact *contact)
 {
-       EmpathyPresence     *presence;
-       EmpathySubscription  subscription;
+       EmpathyPresence *presence;
 
        g_return_val_if_fail (EMPATHY_IS_CONTACT (contact),
                              EMPATHY_IMAGE_OFFLINE);
@@ -389,12 +388,7 @@ empathy_icon_name_for_contact (EmpathyContact *contact)
                return empathy_icon_name_for_presence (presence);
        }
 
-       subscription = empathy_contact_get_subscription (contact);
-       if (!(subscription & EMPATHY_SUBSCRIPTION_FROM)) {
-               return EMPATHY_IMAGE_PENDING;
-       }
-
-       return EMPATHY_IMAGE_OFFLINE;
+       return EMPATHY_IMAGE_UNKNOWN;
 }
 
 static void