From 4047625966d7de345673f6e0603c7e45f2e7d747 Mon Sep 17 00:00:00 2001 From: Guillaume Desmottes Date: Tue, 9 Jun 2009 13:56:10 +0100 Subject: contact_get_avatar_filename: use empathy_contact_get_id instead of priv->id directly priv->id is not supposed to be set for not log contacts so the avatar cache was broken for all TpContact. --- libempathy/empathy-contact.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libempathy/empathy-contact.c') diff --git a/libempathy/empathy-contact.c b/libempathy/empathy-contact.c index 03ce8d28a..ad51b3214 100644 --- a/libempathy/empathy-contact.c +++ b/libempathy/empathy-contact.c @@ -837,10 +837,10 @@ contact_get_avatar_filename (EmpathyContact *contact, gchar *token_escaped; gchar *contact_escaped; - if (EMP_STR_EMPTY (priv->id)) + if (EMP_STR_EMPTY (empathy_contact_get_id (contact))) return NULL; - contact_escaped = tp_escape_as_identifier (priv->id); + contact_escaped = tp_escape_as_identifier (empathy_contact_get_id (contact)); token_escaped = tp_escape_as_identifier (token); account = empathy_contact_get_account (contact); -- cgit v1.2.3