[empathy] contact_get_avatar_filename: use empathy_contact_get_id instead of priv->id directly
- From: Guillaume Desmottes <gdesmott src gnome org>
- To: svn-commits-list gnome org
- Subject: [empathy] contact_get_avatar_filename: use empathy_contact_get_id instead of priv->id directly
- Date: Tue, 9 Jun 2009 09:02:09 -0400 (EDT)
commit 4047625966d7de345673f6e0603c7e45f2e7d747
Author: Guillaume Desmottes <guillaume desmottes collabora co uk>
Date: Tue Jun 9 13:56:10 2009 +0100
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 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/libempathy/empathy-contact.c b/libempathy/empathy-contact.c
index 03ce8d2..ad51b32 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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]