diff options
-rw-r--r-- | libempathy/empathy-log-store-empathy.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/libempathy/empathy-log-store-empathy.c b/libempathy/empathy-log-store-empathy.c index 37a76676f..d431e0d35 100644 --- a/libempathy/empathy-log-store-empathy.c +++ b/libempathy/empathy-log-store-empathy.c @@ -481,8 +481,12 @@ log_store_empathy_get_messages_for_file (EmpathyLogStore *self, t = empathy_time_parse (time); - sender = empathy_contact_new_full (account, sender_id, sender_name); - empathy_contact_set_is_user (sender, is_user); + sender = g_object_new (EMPATHY_TYPE_CONTACT, + "account", account, + "id", sender_id, + "name", sender_name, + "is-user", is_user, + NULL); if (!EMP_STR_EMPTY (sender_avatar_token)) empathy_contact_load_avatar_cache (sender, sender_avatar_token); |