]> git.0d.be Git - empathy.git/blobdiff - src/empathy-chat-main.c
EmpathyContactList is now an interface implemented by
[empathy.git] / src / empathy-chat-main.c
index 7750b0b3f1aab40aec6fb7bf25e82641f17e1909..287766594371284a360fb1d37bb203243ff0b6d7 100644 (file)
@@ -134,14 +134,14 @@ new_channel_cb (EmpathyChandler *chandler,
 
        if (tp_chan->handle_type == TP_HANDLE_TYPE_CONTACT) {
                EmpathyContactManager *manager;
-               EmpathyContactList    *list;
+               EmpathyTpContactList  *list;
                GossipContact         *contact;
                GossipPrivateChat     *chat;
 
                /* We have a new private chat channel */
                manager = empathy_contact_manager_new ();
                list = empathy_contact_manager_get_list (manager, account);
-               contact = empathy_contact_list_get_from_handle (list, tp_chan->handle);
+               contact = empathy_tp_contact_list_get_from_handle (list, tp_chan->handle);
 
                chat = gossip_private_chat_new_with_channel (contact, tp_chan);
                g_object_weak_ref (G_OBJECT (chat),
@@ -157,6 +157,24 @@ new_channel_cb (EmpathyChandler *chandler,
                g_object_unref (chat);
                g_object_unref (manager);
        }
+       if (tp_chan->handle_type == TP_HANDLE_TYPE_ROOM) {
+#if 0
+               GossipGroupChat *chat;
+
+               /* We have a new group chat channel */
+               chat = gossip_group_chat_new (account, tp_chan);
+               g_object_weak_ref (G_OBJECT (chat),
+                                  (GWeakNotify) chat_finalized_cb,
+                                  NULL);
+
+               exit_timeout_stop ();
+               chat_count++;
+
+               gossip_chat_present (GOSSIP_CHAT (chat));
+
+               g_object_unref (chat);
+#endif
+       }
 
 OUT:
        g_free (id);