]> git.0d.be Git - empathy.git/commitdiff
Only check for presence in presence-enabled personas 2.0
authorEmilio Pozuelo Monfort <emilio.pozuelo@collabora.co.uk>
Mon, 15 Nov 2010 16:57:27 +0000 (17:57 +0100)
committerEmilio Pozuelo Monfort <emilio.pozuelo@collabora.co.uk>
Mon, 15 Nov 2010 16:59:12 +0000 (17:59 +0100)
libempathy-gtk/empathy-individual-widget.c

index 72acfd8a5e441e56c5af870dbb41fe251fcc2a00..863ce021e31e764f6827592960ad8289ff8d6cd1 100644 (file)
@@ -220,7 +220,13 @@ update_weak_contact (EmpathyIndividualWidget *self)
       personas = folks_individual_get_personas (priv->individual);
       for (l = personas; l != NULL; l = l->next)
         {
-          FolksPresence *presence = FOLKS_PRESENCE (l->data);
+          FolksPresence *presence;
+
+          /* We only want personas which implement FolksPresence */
+          if (!FOLKS_IS_PRESENCE (l->data))
+            continue;
+
+          presence = FOLKS_PRESENCE (l->data);
 
           if (folks_presence_typecmp (folks_presence_get_presence_type (presence),
                   presence_type) > 0