[empathy/gnome-2-34] chat-window: don't display notifications for pending messages (#635513)
- From: Guillaume Desmottes <gdesmott src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [empathy/gnome-2-34] chat-window: don't display notifications for pending messages (#635513)
- Date: Fri, 28 Jan 2011 13:35:24 +0000 (UTC)
commit ab30e5cff24a01f75cb0f08b138b13504253e2c0
Author: Guillaume Desmottes <guillaume desmottes collabora co uk>
Date: Tue Nov 30 14:58:09 2010 +0100
chat-window: don't display notifications for pending messages (#635513)
src/empathy-chat-window.c | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/src/empathy-chat-window.c b/src/empathy-chat-window.c
index 79d27f9..d953355 100644
--- a/src/empathy-chat-window.c
+++ b/src/empathy-chat-window.c
@@ -1426,7 +1426,11 @@ chat_window_new_message_cb (EmpathyChat *chat,
empathy_sound_play (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 */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]