]> git.0d.be Git - empathy.git/commitdiff
chat: no need to pass a callback to empathy_dispatcher_chat_with_contact_id any more
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>
Mon, 5 Jul 2010 14:08:48 +0000 (16:08 +0200)
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>
Wed, 7 Jul 2010 08:03:00 +0000 (10:03 +0200)
The HandleChannels implementation will re-set the tp-chat once we get it.

libempathy-gtk/empathy-chat.c

index f14cfe4bac37b454d5fd56f5d467d5d73484cb8d..ece8e1679f6915f97d581a10aafb4fe411a01065 100644 (file)
@@ -227,28 +227,6 @@ chat_set_property (GObject      *object,
        };
 }
 
-static void
-chat_connect_channel_reconnected (EmpathyDispatchOperation *dispatch,
-                                 const GError             *error,
-                                 gpointer                  user_data)
-{
-       EmpathyChat *chat = EMPATHY_CHAT (user_data);
-       EmpathyTpChat *tpchat;
-
-       if (error != NULL) {
-               empathy_chat_view_append_event (chat->view,
-                       _("Failed to reconnect this chat"));
-               return;
-       }
-
-       tpchat = EMPATHY_TP_CHAT (
-               empathy_dispatch_operation_get_channel_wrapper (dispatch));
-
-       if (empathy_dispatch_operation_claim (dispatch)) {
-               empathy_chat_set_tp_chat (chat, tpchat);
-       }
-}
-
 static void
 reconnected_connection_ready_cb (TpConnection *connection,
                        const GError *error,
@@ -268,14 +246,12 @@ reconnected_connection_ready_cb (TpConnection *connection,
                case TP_HANDLE_TYPE_CONTACT:
                        empathy_dispatcher_chat_with_contact_id (
                                connection, priv->id, EMPATHY_DISPATCHER_NON_USER_ACTION,
-                               chat_connect_channel_reconnected,
-                               chat);
+                               NULL, NULL);
                        break;
                case TP_HANDLE_TYPE_ROOM:
                        empathy_dispatcher_join_muc (connection,
                                priv->id, EMPATHY_DISPATCHER_NON_USER_ACTION,
-                               chat_connect_channel_reconnected,
-                               chat);
+                               NULL, NULL);
                        break;
                default:
                        g_assert_not_reached ();