diff options
author | Jonny Lamb <jonnylamb@gnome.org> | 2010-10-18 13:15:22 +0100 |
---|---|---|
committer | Jonny Lamb <jonnylamb@gnome.org> | 2010-10-18 13:20:25 +0100 |
commit | 5d43601b7c1a2bf01ac4e75a77906a270f65392f (patch) | |
tree | cad0dba03fb68043702aba2cd0dc4441ff50528b | |
parent | 01ae447f747ae12da9eb7a8dba3bd2a69aa9a25c (diff) |
empathy-individual-store: only check for presence in presence-enabled personasclient-types
Signed-off-by: Jonny Lamb <jonnylamb@gnome.org>
-rw-r--r-- | libempathy-gtk/empathy-individual-store.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/libempathy-gtk/empathy-individual-store.c b/libempathy-gtk/empathy-individual-store.c index 3502dcb74..9a9deb4f7 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) |