]> git.0d.be Git - empathy.git/commitdiff
chat_window_new_message_cb: early return when handling outgoing msg
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>
Mon, 3 Sep 2012 12:49:46 +0000 (14:49 +0200)
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>
Mon, 3 Sep 2012 12:49:46 +0000 (14:49 +0200)
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

index 942dadd0bcc2686cb82b758e673707ac7eb6b767..cc5d2e20f29c4f1e6c553129b2863d715aba358b 100644 (file)
@@ -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)