From 1e219f774fade1c2282b1da75fce32a64156e1e1 Mon Sep 17 00:00:00 2001 From: Xavier Claessens Date: Sat, 13 Oct 2007 14:31:36 +0000 Subject: Set chat state to ACTIVE when receiving a message from a contact, avoid 2007-10-13 Xavier Claessens * 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. svn path=/trunk/; revision=372 --- libempathy-gtk/empathy-chat.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to '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); } -- cgit v1.2.3