]> git.0d.be Git - empathy.git/blobdiff - libempathy-gtk/empathy-contact-list-store.c
EmpathyTpChat: inherit from TpTextChannel (#650554)
[empathy.git] / libempathy-gtk / empathy-contact-list-store.c
index 783ce77ef9e530e8957eea7663bf84a7faacddc3..7246ed270b8464ea4eebbf26739da3b183c6ce71 100644 (file)
@@ -233,17 +233,10 @@ contact_list_store_iface_setup (gpointer user_data)
                          store);
 
        if (EMPATHY_IS_TP_CHAT (priv->list)) {
-               TpChannel *channel;
-
-               channel = empathy_tp_chat_get_channel (EMPATHY_TP_CHAT (priv->list));
-               if (!tp_proxy_is_prepared (channel, TP_CHANNEL_FEATURE_CHAT_STATES)) {
-                       DEBUG ("Chat state feature not prepared");
-               } else {
-                       g_signal_connect (channel,
+                       g_signal_connect (priv->list,
                                          "chat-state-changed",
                                          G_CALLBACK (contact_list_store_chat_state_changed_cb),
                                          store);
-               }
        }
 
        /* Add contacts already created. */