]> git.0d.be Git - empathy.git/commitdiff
Handle SendError signal correctly, not as a message
authorWill Thompson <will.thompson@collabora.co.uk>
Sun, 30 Aug 2009 23:17:55 +0000 (00:17 +0100)
committerWill Thompson <will.thompson@collabora.co.uk>
Mon, 31 Aug 2009 00:17:52 +0000 (01:17 +0100)
Fixes Gnome bug #593095 - Send errors are printed as normal messages.

libempathy/empathy-tp-chat.c

index 7953b69e2a3413b1949469433edf55e8604f73ba..7429e1ddc85f69b54f64fd8893dcaaf34ae30e0f 100644 (file)
@@ -339,14 +339,9 @@ tp_chat_send_error_cb (TpChannel   *channel,
        if (priv->channel == NULL)
                return;
 
-       DEBUG ("Message sent error: %s (%d)", message_body, error_code);
+       DEBUG ("Error sending '%s' (%d)", message_body, error_code);
 
-       tp_chat_build_message (EMPATHY_TP_CHAT (chat),
-                              0,
-                              message_type,
-                              timestamp,
-                              0,
-                              message_body);
+       g_signal_emit (chat, signals[SEND_ERROR], 0, message_body, error_code);
 }
 
 static void