aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy/empathy-contact.c
diff options
context:
space:
mode:
authorPhilip Withnall <philip.withnall@collabora.co.uk>2011-01-30 00:16:29 +0800
committerPhilip Withnall <philip.withnall@collabora.co.uk>2011-02-18 07:47:31 +0800
commit753a1862257d4c14fb2475a73ec08aeabdb7d907 (patch)
treebcf78312b1b7954818b929dfac44786e59b247a2 /libempathy/empathy-contact.c
parentd008f215bc41f4e69ff01879047ec946a4370148 (diff)
downloadgsoc2013-empathy-753a1862257d4c14fb2475a73ec08aeabdb7d907.tar
gsoc2013-empathy-753a1862257d4c14fb2475a73ec08aeabdb7d907.tar.gz
gsoc2013-empathy-753a1862257d4c14fb2475a73ec08aeabdb7d907.tar.bz2
gsoc2013-empathy-753a1862257d4c14fb2475a73ec08aeabdb7d907.tar.lz
gsoc2013-empathy-753a1862257d4c14fb2475a73ec08aeabdb7d907.tar.xz
gsoc2013-empathy-753a1862257d4c14fb2475a73ec08aeabdb7d907.tar.zst
gsoc2013-empathy-753a1862257d4c14fb2475a73ec08aeabdb7d907.zip
Bug 637151 — Hide the user Individual from the contact list
Generalise the mechanism used to determine whether a persona is to be displayed by Empathy to also take into account whether the persona is the user and, if so, whether they're in the contact list. This bumps the libfolks dependency to 0.3.5. Closes: bgo#637151
Diffstat (limited to 'libempathy/empathy-contact.c')
-rw-r--r--libempathy/empathy-contact.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libempathy/empathy-contact.c b/libempathy/empathy-contact.c
index 9ae26142a..0547ef82d 100644
--- a/libempathy/empathy-contact.c
+++ b/libempathy/empathy-contact.c
@@ -885,7 +885,7 @@ empathy_contact_get_persona (EmpathyContact *contact)
{
TpfPersona *persona = j->data;
- if (TPF_IS_PERSONA (persona))
+ if (empathy_folks_persona_is_interesting (FOLKS_PERSONA (persona)))
{
TpContact *tp_contact = tpf_persona_get_contact (persona);
@@ -1958,7 +1958,7 @@ empathy_contact_dup_best_for_action (FolksIndividual *individual,
TpContact *tp_contact;
EmpathyContact *contact;
- if (!TPF_IS_PERSONA (l->data))
+ if (!empathy_folks_persona_is_interesting (FOLKS_PERSONA (l->data)))
continue;
tp_contact = tpf_persona_get_contact (TPF_PERSONA (l->data));