]> git.0d.be Git - empathy.git/blobdiff - libempathy-gtk/empathy-private-chat.c
Block events messages when the chat is connecting to a new Text channel. Fixes bug...
[empathy.git] / libempathy-gtk / empathy-private-chat.c
index 2dd1ba7554dc31bf68673d5f92ae966a28955a0c..0bcdd784494f21781306cd8a22b6d879350a3ca3 100644 (file)
@@ -223,7 +223,7 @@ private_chat_contact_presence_updated_cb (EmpathyContact     *contact,
                      empathy_contact_get_id (contact));
 
        if (!empathy_contact_is_online (contact)) {
-               if (priv->is_online) {
+               if (priv->is_online && !EMPATHY_CHAT (chat)->block_events) {
                        gchar *msg;
 
                        msg = g_strdup_printf (_("%s went offline"),
@@ -237,7 +237,7 @@ private_chat_contact_presence_updated_cb (EmpathyContact     *contact,
                g_signal_emit_by_name (chat, "composing", FALSE);
 
        } else {
-               if (!priv->is_online) {
+               if (!priv->is_online && !EMPATHY_CHAT (chat)->block_events) {
                        gchar *msg;
 
                        msg = g_strdup_printf (_("%s has come online"),