aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJonny Lamb <jonnylamb@gnome.org>2010-10-18 20:15:22 +0800
committerEmilio Pozuelo Monfort <emilio.pozuelo@collabora.co.uk>2010-11-16 00:59:11 +0800
commit1e22706c294c3b775d1963aabff29a0695ccf595 (patch)
tree6c1c52b08e817d4e1892d96cc159d76c443787e7
parentc391eb0efd50b519218c317d0c14e34954a45f9a (diff)
downloadgsoc2013-empathy-1e22706c294c3b775d1963aabff29a0695ccf595.tar
gsoc2013-empathy-1e22706c294c3b775d1963aabff29a0695ccf595.tar.gz
gsoc2013-empathy-1e22706c294c3b775d1963aabff29a0695ccf595.tar.bz2
gsoc2013-empathy-1e22706c294c3b775d1963aabff29a0695ccf595.tar.lz
gsoc2013-empathy-1e22706c294c3b775d1963aabff29a0695ccf595.tar.xz
gsoc2013-empathy-1e22706c294c3b775d1963aabff29a0695ccf595.tar.zst
gsoc2013-empathy-1e22706c294c3b775d1963aabff29a0695ccf595.zip
empathy-individual-store: only check for presence in presence-enabled personas
Signed-off-by: Jonny Lamb <jonnylamb@gnome.org>
-rw-r--r--libempathy-gtk/empathy-individual-store.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/libempathy-gtk/empathy-individual-store.c b/libempathy-gtk/empathy-individual-store.c
index abd1d02e8..ce2eacf82 100644
--- a/libempathy-gtk/empathy-individual-store.c
+++ b/libempathy-gtk/empathy-individual-store.c
@@ -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)