aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy-gtk
diff options
context:
space:
mode:
authorXavier Claessens <xclaesse@gmail.com>2007-10-13 22:31:36 +0800
committerXavier Claessens <xclaesse@src.gnome.org>2007-10-13 22:31:36 +0800
commit1e219f774fade1c2282b1da75fce32a64156e1e1 (patch)
tree08e9860e26bea426a7707db96dc732ca1115a8f0 /libempathy-gtk
parentd00adf45ea54086a8d1d29090639b5beb3f88b34 (diff)
downloadgsoc2013-empathy-1e219f774fade1c2282b1da75fce32a64156e1e1.tar
gsoc2013-empathy-1e219f774fade1c2282b1da75fce32a64156e1e1.tar.gz
gsoc2013-empathy-1e219f774fade1c2282b1da75fce32a64156e1e1.tar.bz2
gsoc2013-empathy-1e219f774fade1c2282b1da75fce32a64156e1e1.tar.lz
gsoc2013-empathy-1e219f774fade1c2282b1da75fce32a64156e1e1.tar.xz
gsoc2013-empathy-1e219f774fade1c2282b1da75fce32a64156e1e1.tar.zst
gsoc2013-empathy-1e219f774fade1c2282b1da75fce32a64156e1e1.zip
Set chat state to ACTIVE when receiving a message from a contact, avoid
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. svn path=/trunk/; revision=372
Diffstat (limited to 'libempathy-gtk')
-rw-r--r--libempathy-gtk/empathy-chat.c5
1 files changed, 5 insertions, 0 deletions
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);
}