[empathy] chat: no need to pass a callback to empathy_dispatcher_chat_with_contact_id any more



commit 817f3db6bb903c509b55a194425a1ccb350192fa
Author: Guillaume Desmottes <guillaume desmottes collabora co uk>
Date:   Mon Jul 5 16:08:48 2010 +0200

    chat: no need to pass a callback to empathy_dispatcher_chat_with_contact_id any more
    
    The HandleChannels implementation will re-set the tp-chat once we get it.

 libempathy-gtk/empathy-chat.c |   28 ++--------------------------
 1 files changed, 2 insertions(+), 26 deletions(-)
---
diff --git a/libempathy-gtk/empathy-chat.c b/libempathy-gtk/empathy-chat.c
index f14cfe4..ece8e16 100644
--- a/libempathy-gtk/empathy-chat.c
+++ b/libempathy-gtk/empathy-chat.c
@@ -228,28 +228,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,
 			gpointer user_data)
@@ -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 ();



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]