]> git.0d.be Git - empathy.git/blobdiff - libempathy-gtk/gossip-private-chat.c
Log chats and display 10 last messages when opening a new chat.
[empathy.git] / libempathy-gtk / gossip-private-chat.c
index 12e83dcccfb56eebe04fb42c25ca22191cf53447..f047f12e290b9a81e0eb960faa0e6df1b7ceb18e 100644 (file)
@@ -307,13 +307,12 @@ private_chat_setup (GossipPrivateChat *chat,
 
        priv = GET_PRIV (chat);
 
-       gossip_chat_set_tp_chat (GOSSIP_CHAT (chat), tp_chat);
-
-       priv->contact = g_object_ref (contact);
        GOSSIP_CHAT (chat)->account = g_object_ref (gossip_contact_get_account (contact));
-
+       priv->contact = g_object_ref (contact);
        priv->name = g_strdup (gossip_contact_get_name (contact));
 
+       gossip_chat_set_tp_chat (GOSSIP_CHAT (chat), tp_chat);
+
        g_signal_connect (priv->contact, 
                          "notify::name",
                          G_CALLBACK (private_chat_contact_updated_cb),