aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy-gtk/empathy-chat.c
diff options
context:
space:
mode:
authorxclaesse <xclaesse@4ee84921-47dd-4033-b63a-18d7a039a3e4>2007-10-13 22:31:36 +0800
committerxclaesse <xclaesse@4ee84921-47dd-4033-b63a-18d7a039a3e4>2007-10-13 22:31:36 +0800
commitcfc86ffbf66d7c6a60f00887979214e2bf40b31d (patch)
tree08e9860e26bea426a7707db96dc732ca1115a8f0 /libempathy-gtk/empathy-chat.c
parent46b36ddc5af420c903db28e8e1aa7c5c7b07f4b9 (diff)
downloadgsoc2013-empathy-cfc86ffbf66d7c6a60f00887979214e2bf40b31d.tar
gsoc2013-empathy-cfc86ffbf66d7c6a60f00887979214e2bf40b31d.tar.gz
gsoc2013-empathy-cfc86ffbf66d7c6a60f00887979214e2bf40b31d.tar.bz2
gsoc2013-empathy-cfc86ffbf66d7c6a60f00887979214e2bf40b31d.tar.lz
gsoc2013-empathy-cfc86ffbf66d7c6a60f00887979214e2bf40b31d.tar.xz
gsoc2013-empathy-cfc86ffbf66d7c6a60f00887979214e2bf40b31d.tar.zst
gsoc2013-empathy-cfc86ffbf66d7c6a60f00887979214e2bf40b31d.zip
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. git-svn-id: svn+ssh://svn.gnome.org/svn/empathy/trunk@372 4ee84921-47dd-4033-b63a-18d7a039a3e4
Diffstat (limited to 'libempathy-gtk/empathy-chat.c')
-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);
}