]> git.0d.be Git - empathy.git/commitdiff
empathy-individual-store: only check for presence in presence-enabled personas
authorJonny Lamb <jonnylamb@gnome.org>
Mon, 18 Oct 2010 12:15:22 +0000 (13:15 +0100)
committerEmilio Pozuelo Monfort <emilio.pozuelo@collabora.co.uk>
Mon, 15 Nov 2010 16:59:11 +0000 (17:59 +0100)
Signed-off-by: Jonny Lamb <jonnylamb@gnome.org>
libempathy-gtk/empathy-individual-store.c

index abd1d02e855361263609645ba8d7c2e8556198f0..ce2eacf82138c32b036ad9f366f5dbafc4b0b335 100644 (file)
@@ -164,7 +164,13 @@ individual_get_client_types (FolksIndividual *individual)
   personas = folks_individual_get_personas (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)