From a5c4e3ebc50c91ece5c524f9b381a57dfb330eea Mon Sep 17 00:00:00 2001 From: Xavier Claessens Date: Sat, 8 Mar 2008 20:36:41 +0000 Subject: Queue received messages until the sender got his alias. svn path=/trunk/; revision=713 --- libempathy-gtk/empathy-status-icon.c | 18 ++++-------------- 1 file changed, 4 insertions(+), 14 deletions(-) (limited to 'libempathy-gtk/empathy-status-icon.c') diff --git a/libempathy-gtk/empathy-status-icon.c b/libempathy-gtk/empathy-status-icon.c index 78c8b47e0..9f10bd37e 100644 --- a/libempathy-gtk/empathy-status-icon.c +++ b/libempathy-gtk/empathy-status-icon.c @@ -322,7 +322,6 @@ status_icon_text_filter_new_channel (EmpathyFilter *filter, EmpathyStatusIconPriv *priv; McAccount *account; EmpathyTpChat *tp_chat; - GList *messages; priv = GET_PRIV (icon); @@ -335,19 +334,9 @@ status_icon_text_filter_new_channel (EmpathyFilter *filter, g_object_set_data (G_OBJECT (tp_chat), "filter", filter); g_object_unref (account); - messages = empathy_tp_chat_get_pendings (tp_chat); - if (!messages) { - empathy_debug (DEBUG_DOMAIN, "No pending msg, waiting..."); - g_signal_connect (tp_chat, "message-received", - G_CALLBACK (status_icon_message_received_cb), - icon); - return; - } - - status_icon_message_received_cb (tp_chat, messages->data, icon); - - g_list_foreach (messages, (GFunc) g_object_unref, NULL); - g_list_free (messages); + g_signal_connect (tp_chat, "message-received", + G_CALLBACK (status_icon_message_received_cb), + icon); } static void @@ -783,6 +772,7 @@ status_icon_event_msg_cb (StatusIconEvent *event) empathy_filter_process (filter, empathy_tp_chat_get_channel (tp_chat), TRUE); + g_object_unref (tp_chat); } -- cgit v1.2.3