diff src/conversation.c @ 13838:dd00149f6f9b

[gaim-migrate @ 16287] SF Patch #1503847 from Sadrul "This patch "contactizes" the send history in a conversation, ie. with this patch you can get the previously sent messages by pressing ctrl+up/down after switching the account during a contactized conversation." committer: Tailor Script <tailor@pidgin.im>
author Richard Laager <rlaager@wiktel.com>
date Mon, 19 Jun 2006 06:31:11 +0000
parents 43ebbe768a43
children a9ff4499d9ce
line wrap: on
line diff
--- a/src/conversation.c	Mon Jun 19 06:27:18 2006 +0000
+++ b/src/conversation.c	Mon Jun 19 06:31:11 2006 +0000
@@ -263,7 +263,6 @@
 	conv->account      = account;
 	conv->name         = g_strdup(name);
 	conv->title        = g_strdup(name);
-	conv->send_history = g_list_append(NULL, NULL);
 	conv->data         = g_hash_table_new_full(g_str_hash, g_str_equal,
 											   g_free, NULL);
 	/* copy features from the connection. */
@@ -419,17 +418,6 @@
 	conv->name = NULL;
 	conv->title = NULL;
 
-	for (node = g_list_first(conv->send_history);
-		 node != NULL;
-		 node = g_list_next(node)) {
-
-		if (node->data != NULL)
-			g_free(node->data);
-		node->data = NULL;
-	}
-
-	g_list_free(g_list_first(conv->send_history));
-
 	if (conv->type == GAIM_CONV_TYPE_IM) {
 		gaim_conv_im_stop_typing_timeout(conv->u.im);
 		gaim_conv_im_stop_type_again_timeout(conv->u.im);
@@ -708,14 +696,6 @@
 	conv->logs = NULL;
 }
 
-GList *
-gaim_conversation_get_send_history(const GaimConversation *conv)
-{
-	g_return_val_if_fail(conv != NULL, NULL);
-
-	return conv->send_history;
-}
-
 GaimConvIm *
 gaim_conversation_get_im_data(const GaimConversation *conv)
 {