aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy
diff options
context:
space:
mode:
authorXavier Claessens <xclaesse@gmail.com>2009-02-16 07:26:37 +0800
committerXavier Claessens <xclaesse@gmail.com>2009-04-22 18:17:01 +0800
commit5adc5a62f5fee78c93f361e44c0b32e989826aac (patch)
tree071a33a05f802a2ce65e68ec0c386b6327eda68e /libempathy
parentd18c8688bf0d78ff372f68f5a6d8a92dc3f01f9b (diff)
downloadgsoc2013-empathy-5adc5a62f5fee78c93f361e44c0b32e989826aac.tar
gsoc2013-empathy-5adc5a62f5fee78c93f361e44c0b32e989826aac.tar.gz
gsoc2013-empathy-5adc5a62f5fee78c93f361e44c0b32e989826aac.tar.bz2
gsoc2013-empathy-5adc5a62f5fee78c93f361e44c0b32e989826aac.tar.lz
gsoc2013-empathy-5adc5a62f5fee78c93f361e44c0b32e989826aac.tar.xz
gsoc2013-empathy-5adc5a62f5fee78c93f361e44c0b32e989826aac.tar.zst
gsoc2013-empathy-5adc5a62f5fee78c93f361e44c0b32e989826aac.zip
Port EmpathyLogManager to new API
Diffstat (limited to 'libempathy')
-rw-r--r--libempathy/empathy-log-store-empathy.c8
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);