]> git.0d.be Git - empathy.git/blobdiff - libempathy/empathy-log-store-empathy.c
Merge branch 'master' into tp-tube
[empathy.git] / libempathy / empathy-log-store-empathy.c
index d431e0d351ef1530712c71459fd25a0c8bc8d907..b74b5e177dbb7fb2b41bf07e791c0ec245812448 100644 (file)
@@ -481,12 +481,9 @@ log_store_empathy_get_messages_for_file (EmpathyLogStore *self,
 
       t = empathy_time_parse (time);
 
-      sender = g_object_new (EMPATHY_TYPE_CONTACT,
-          "account", account,
-          "id", sender_id,
-          "name", sender_name,
-          "is-user", is_user,
-          NULL);
+      sender = empathy_contact_new_for_log (account, sender_id, sender_name,
+                                           is_user);
+
       if (!EMP_STR_EMPTY (sender_avatar_token))
         empathy_contact_load_avatar_cache (sender,
             sender_avatar_token);