aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog6
-rw-r--r--libempathy-gtk/empathy-chat.c5
2 files changed, 11 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 34011cc5c..0a5ac11b7 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,11 @@
2007-10-13 Xavier Claessens <xclaesse@gmail.com>
+ * libempathy-gtk/empathy-chat.c: Set chat state to ACTIVE when receiving
+ a message from a contact, avoid staying in COMPOSING state forever for
+ protocols like MSN that do not notify when contact stoped writing.
+
+2007-10-13 Xavier Claessens <xclaesse@gmail.com>
+
* libempathy-gtk/empathy-chat-view.h:
* libempathy-gtk/empathy-main-window.c:
* libempathy-gtk/empathy-chat.c:
diff --git a/libempathy-gtk/empathy-chat.c b/libempathy-gtk/empathy-chat.c
index 9dd75c2c7..944bc10b5 100644
--- a/libempathy-gtk/empathy-chat.c
+++ b/libempathy-gtk/empathy-chat.c
@@ -430,6 +430,11 @@ chat_message_received_cb (EmpathyTpChat *tp_chat,
// FIXME: empathy_sound_play (EMPATHY_SOUND_CHAT);
}
+ /* We received a message so the contact is no more composing */
+ chat_state_changed_cb (tp_chat, sender,
+ TP_CHANNEL_CHAT_STATE_ACTIVE,
+ chat);
+
g_signal_emit (chat, signals[NEW_MESSAGE], 0, message, FALSE);
}