From 979f90a0425dec607d58008fc8ba8a5966179807 Mon Sep 17 00:00:00 2001 From: Guillaume Desmottes Date: Mon, 3 Sep 2012 14:49:46 +0200 Subject: 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 file changed, 1 insertion(+) (limited to 'src/empathy-chat-window.c') diff --git a/src/empathy-chat-window.c b/src/empathy-chat-window.c index 942dadd0b..cc5d2e20f 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) -- cgit v1.2.3