aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy/empathy-log-store-empathy.c
diff options
context:
space:
mode:
authorXavier Claessens <xclaesse@gmail.com>2009-04-21 06:43:41 +0800
committerXavier Claessens <xclaesse@gmail.com>2009-04-22 18:21:14 +0800
commit65ed272fef1016fff3403024e3417491ecf30015 (patch)
tree23cb0dabcc28a0d8b7155230462831f8894317a0 /libempathy/empathy-log-store-empathy.c
parenta5356f9c7ea9979f05a6752a848d944a9ed7264d (diff)
downloadgsoc2013-empathy-65ed272fef1016fff3403024e3417491ecf30015.tar
gsoc2013-empathy-65ed272fef1016fff3403024e3417491ecf30015.tar.gz
gsoc2013-empathy-65ed272fef1016fff3403024e3417491ecf30015.tar.bz2
gsoc2013-empathy-65ed272fef1016fff3403024e3417491ecf30015.tar.lz
gsoc2013-empathy-65ed272fef1016fff3403024e3417491ecf30015.tar.xz
gsoc2013-empathy-65ed272fef1016fff3403024e3417491ecf30015.tar.zst
gsoc2013-empathy-65ed272fef1016fff3403024e3417491ecf30015.zip
Add empathy_contact_new_static() to create a contact that comes from logs
Diffstat (limited to 'libempathy/empathy-log-store-empathy.c')
-rw-r--r--libempathy/empathy-log-store-empathy.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/libempathy/empathy-log-store-empathy.c b/libempathy/empathy-log-store-empathy.c
index d431e0d35..6485d0079 100644
--- a/libempathy/empathy-log-store-empathy.c
+++ b/libempathy/empathy-log-store-empathy.c
@@ -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_static (account, sender_id, sender_name,
+ is_user);
+
if (!EMP_STR_EMPTY (sender_avatar_token))
empathy_contact_load_avatar_cache (sender,
sender_avatar_token);