]> git.0d.be Git - empathy.git/commitdiff
contact_get_avatar_filename: use empathy_contact_get_id instead of priv->id directly
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>
Tue, 9 Jun 2009 12:56:10 +0000 (13:56 +0100)
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>
Tue, 9 Jun 2009 12:56:10 +0000 (13:56 +0100)
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

index 03ce8d28a397681eea6d296514e23aa81abcee78..ad51b3214a5b446d282c265c4d775a71a35606c8 100644 (file)
@@ -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);