summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonny Lamb <jonny.lamb@collabora.co.uk>2010-03-12 23:00:33 (GMT)
committerJonny Lamb <jonny.lamb@collabora.co.uk>2010-03-12 23:00:33 (GMT)
commitf28b3d840b79aa9e90430a73f18cf5b6aab06a45 (patch)
treedc7611fb6f2bc04efc7a18f8a870ee0f54f57e61
parent3d5afdcd6e6046e7055d898366f570ee9aebf2b0 (diff)
downloadtelepathy-butterfly-f28b3d840b79aa9e90430a73f18cf5b6aab06a45.tar.gz
telepathy-butterfly-f28b3d840b79aa9e90430a73f18cf5b6aab06a45.tar.xz
text channel: stop sending typing notifications if the chat state is not composing
Signed-off-by: Jonny Lamb <jonny.lamb@collabora.co.uk>
-rw-r--r--butterfly/channel/text.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/butterfly/channel/text.py b/butterfly/channel/text.py
index 22e55f7..eb19f32 100644
--- a/butterfly/channel/text.py
+++ b/butterfly/channel/text.py
@@ -119,8 +119,8 @@ class ButterflyTextChannel(
self._send_typing_notification_timeout = \
gobject.timeout_add_seconds(5, self._send_typing_notification)
- elif state == telepathy.CHANNEL_CHAT_STATE_ACTIVE:
- # User has stopped typing.
+ else:
+ # User is gone/inactive/active/paused, which basically means "not typing".
# If we have a timeout for sending typing notifications, remove it.
if self._send_typing_notification_timeout != 0:
gobject.source_remove(self._send_typing_notification_timeout)