aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBen Kelly <bk@ancilla.ca>2017-07-12 11:50:46 -0400
committerBen Kelly <btk@google.com>2017-07-13 09:37:42 -0400
commit79a50ba570e9026e219505f7b632fb49d79b13d7 (patch)
treebcf95997ab327052ec5df9fc7eb9c17ffe16b926
parentac47c2e1ac4a80b4d6a01d1f7ab0659d3d538518 (diff)
downloadwee-slack-79a50ba570e9026e219505f7b632fb49d79b13d7.tar.gz
Don't send typing notifications for threads, since Slack doesn't like that.
Signed-off-by: Ben Kelly <btk@google.com>
-rw-r--r--wee_slack.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/wee_slack.py b/wee_slack.py
index bf45ffc..ec08206 100644
--- a/wee_slack.py
+++ b/wee_slack.py
@@ -696,7 +696,7 @@ def typing_notification_cb(signal, sig_type, data):
if typing_timer + 4 < now:
current_buffer = w.current_buffer()
channel = EVENTROUTER.weechat_controller.buffers.get(current_buffer, None)
- if channel:
+ if channel and channel.type != "thread":
identifier = channel.identifier
request = {"type": "typing", "channel": identifier}
channel.team.send_to_websocket(request, expect_reply=False)