summary refs log tree commit diff
path: root/synapse/handlers/typing.py
diff options
context:
space:
mode:
authorPaul "LeoNerd" Evans <paul@matrix.org>2015-01-12 19:09:14 +0000
committerPaul "LeoNerd" Evans <paul@matrix.org>2015-01-12 19:09:14 +0000
commit02ffbb20d00dbda213ba9321537ac12e347dcc35 (patch)
treefad8028b700e1c46efa90254a666077034fe78bc /synapse/handlers/typing.py
parentCheck that setting typing notification still works after explicit timeout at ... (diff)
downloadsynapse-02ffbb20d00dbda213ba9321537ac12e347dcc35.tar.xz
Use float rather than integer divisions to turn msec into sec - so timeouts under 1000msec will actually work
Diffstat (limited to 'synapse/handlers/typing.py')
-rw-r--r--synapse/handlers/typing.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/handlers/typing.py b/synapse/handlers/typing.py
index 15039ff0da..22ce7873d0 100644
--- a/synapse/handlers/typing.py
+++ b/synapse/handlers/typing.py
@@ -91,7 +91,7 @@ class TypingNotificationHandler(BaseHandler):
 
         self._member_typing_until[member] = until
         self._member_typing_timer[member] = self.clock.call_later(
-            timeout / 1000, _cb
+            timeout / 1000.0, _cb
         )
 
         if was_present: