diff options
author | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2012-09-03 20:49:46 +0800 |
---|---|---|
committer | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2012-09-03 20:49:46 +0800 |
commit | 979f90a0425dec607d58008fc8ba8a5966179807 (patch) | |
tree | ef38ae2d2fa4621a36540155366e525a23661b91 /src | |
parent | 02ff7d33ac6453ea61c2f998710d40044b1539e9 (diff) | |
download | gsoc2013-empathy-979f90a0425dec607d58008fc8ba8a5966179807.tar.gz gsoc2013-empathy-979f90a0425dec607d58008fc8ba8a5966179807.tar.zst gsoc2013-empathy-979f90a0425dec607d58008fc8ba8a5966179807.zip |
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.
Diffstat (limited to 'src')
-rw-r--r-- | 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 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) |