Port EmpathyLogManager to new API
authorXavier Claessens <xclaesse@gmail.com>
Sun, 15 Feb 2009 23:26:37 +0000 (00:26 +0100)
committerXavier Claessens <xclaesse@gmail.com>
Wed, 22 Apr 2009 10:17:01 +0000 (12:17 +0200)
libempathy/empathy-log-store-empathy.c

index 37a76676f5c84e948cc25f5f7884c9ee41edb11c..d431e0d351ef1530712c71459fd25a0c8bc8d907 100644 (file)
@@ -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);