soc.2009.telepathy: 005c3bc9: Forgot about useless pending_Messages in...

sttwister at soc.pidgin.im sttwister at soc.pidgin.im
Tue Jul 14 13:50:22 EDT 2009


-----------------------------------------------------------------
Revision: 005c3bc90e11c4f7e5eb114181e165fee10f9a50
Ancestor: 1dc5118d35cc0632ac10157d052f1ab54043ada2
Author: sttwister at soc.pidgin.im
Date: 2009-07-14T17:47:40
Branch: im.pidgin.soc.2009.telepathy
URL: http://d.pidgin.im/viewmtn/revision/info/005c3bc90e11c4f7e5eb114181e165fee10f9a50

Modified files:
        libpurple/protocols/telepathy/telepathy_channel_text.c
        libpurple/protocols/telepathy/telepathy_channel_text.h

ChangeLog: 

Forgot about useless pending_Messages in telepathy_room_channel

-------------- next part --------------
============================================================
--- libpurple/protocols/telepathy/telepathy_channel_text.c	2fb9f0e18070912bf9a63516cab3db738a4fd467
+++ libpurple/protocols/telepathy/telepathy_channel_text.c	6cb7ca9939eaab24ec3792ed6a88cffddfddf418
@@ -473,24 +473,6 @@ handle_room_text_channel (TpChannel *cha
 
 	g_signal_connect(channel, "invalidated", G_CALLBACK(room_channel_invalidated_cb), data);
 
-	/* send pending messages */
-	while (tp_channel->pending_Messages != NULL)
-	{
-		purple_debug_info("telepathy", "Sending pending message \"%s\" to %s\n",
-				(gchar *)tp_channel->pending_Messages->data, who);
-
-		tp_cli_channel_type_text_call_send(channel, -1,
-				TP_CHANNEL_TEXT_MESSAGE_TYPE_NORMAL,
-				tp_channel->pending_Messages->data,
-				chat_send_cb, data, NULL, NULL);
-
-		/* the message was duped */
-		g_free(tp_channel->pending_Messages->data);
-
-		tp_channel->pending_Messages = g_list_delete_link(
-				tp_channel->pending_Messages, tp_channel->pending_Messages);
-	}
-
 	tp_cli_channel_type_text_connect_to_send_error(channel,
 			chat_send_error_cb, data, NULL, NULL, &error);
 
============================================================
--- libpurple/protocols/telepathy/telepathy_channel_text.h	e5df31d1c7934b0fd990ba6d0ce6bdc1d08c04eb
+++ libpurple/protocols/telepathy/telepathy_channel_text.h	f7fb17d3825bb6e3fb9fdd753f8ffe78b2282b9e
@@ -29,7 +29,6 @@ typedef struct
 
 typedef struct
 {
-	GList *pending_Messages;
 	TpChannel *channel;
 
 	telepathy_connection *connection_data;


More information about the Commits mailing list