aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy-gtk
diff options
context:
space:
mode:
Diffstat (limited to 'libempathy-gtk')
-rw-r--r--libempathy-gtk/empathy-individual-store.c4
-rw-r--r--libempathy-gtk/empathy-individual-widget.c14
2 files changed, 9 insertions, 9 deletions
diff --git a/libempathy-gtk/empathy-individual-store.c b/libempathy-gtk/empathy-individual-store.c
index ef786d7e3..b804b2259 100644
--- a/libempathy-gtk/empathy-individual-store.c
+++ b/libempathy-gtk/empathy-individual-store.c
@@ -166,8 +166,8 @@ individual_get_client_types (FolksIndividual *individual)
{
FolksPresenceDetails *presence;
- /* We only want personas which implement FolksPresenceDetails */
- if (!FOLKS_IS_PRESENCE_DETAILS (l->data))
+ /* We only want personas which have presence and a TpContact */
+ if (!empathy_folks_persona_is_interesting (persona))
continue;
presence = FOLKS_PRESENCE_DETAILS (l->data);
diff --git a/libempathy-gtk/empathy-individual-widget.c b/libempathy-gtk/empathy-individual-widget.c
index dc45191a6..d0697d261 100644
--- a/libempathy-gtk/empathy-individual-widget.c
+++ b/libempathy-gtk/empathy-individual-widget.c
@@ -229,20 +229,20 @@ update_weak_contact (EmpathyIndividualWidget *self)
for (l = personas; l != NULL; l = l->next)
{
FolksPresenceDetails *presence;
+ FolksPresenceType presence_type_cur;
- /* We only want personas which implement FolksPresence */
- if (!FOLKS_IS_PRESENCE_DETAILS (l->data))
+ /* We only want personas which have presence and a TpContact */
+ if (!empathy_folks_persona_is_interesting (FOLKS_PERSONA (presence)))
continue;
presence = FOLKS_PRESENCE_DETAILS (l->data);
+ presence_type_cur = folks_presence_details_get_presence_type (
+ presence);
if (folks_presence_details_typecmp (
- folks_presence_details_get_presence_type (presence),
- presence_type) > 0 &&
- empathy_folks_persona_is_interesting (FOLKS_PERSONA (presence)))
+ presence_type_cur, presence_type) > 0)
{
- presence_type = folks_presence_details_get_presence_type (
- presence);
+ presence_type = presence_type_cur;
tp_contact = tpf_persona_get_contact (TPF_PERSONA (l->data));
}
}