[empathy] chat_window_new_message_cb: early return when handling outgoing msg
- From: Guillaume Desmottes <gdesmott src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [empathy] chat_window_new_message_cb: early return when handling outgoing msg
- Date: Mon, 3 Sep 2012 12:58:12 +0000 (UTC)
commit 979f90a0425dec607d58008fc8ba8a5966179807
Author: Guillaume Desmottes <guillaume desmottes collabora co uk>
Date: Mon Sep 3 14:49:46 2012 +0200
chat_window_new_message_cb: early return when handling outgoing msg
There is no need to continue processing a message (unread count, play
incoming message sound) if it's an outgoing one.
Fix a bug where we use to play to ougoing sound *and* the incoming sound when
sending a message.
src/empathy-chat-window.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/src/empathy-chat-window.c b/src/empathy-chat-window.c
index 942dadd..cc5d2e2 100644
--- a/src/empathy-chat-window.c
+++ b/src/empathy-chat-window.c
@@ -1632,6 +1632,7 @@ chat_window_new_message_cb (EmpathyChat *chat,
{
empathy_sound_manager_play (self->priv->sound_mgr, GTK_WIDGET (self->priv->dialog),
EMPATHY_SOUND_MESSAGE_OUTGOING);
+ return;
}
if (has_focus && self->priv->current_chat == chat)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]