From 16b77581e53f068035343c0daf302ffb73303134 Mon Sep 17 00:00:00 2001 From: Guillaume Desmottes Date: Tue, 30 Nov 2010 14:58:09 +0100 Subject: chat-window: don't display notifications for pending messages (#635513) --- src/empathy-chat-window.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/empathy-chat-window.c b/src/empathy-chat-window.c index 1eeba2756..210478304 100644 --- a/src/empathy-chat-window.c +++ b/src/empathy-chat-window.c @@ -1458,7 +1458,11 @@ chat_window_new_message_cb (EmpathyChat *chat, empathy_sound_manager_play (priv->sound_mgr, GTK_WIDGET (priv->dialog), EMPATHY_SOUND_MESSAGE_INCOMING); - chat_window_show_or_update_notification (window, message, chat); + + /* Pending messages have already been displayed in the approver, so we don't + * display a notification for those. */ + if (!pending) + chat_window_show_or_update_notification (window, message, chat); } /* update the number of unread messages and the window icon */ -- cgit v1.2.3