diff options
author | Ben Kelly <bk@ancilla.ca> | 2017-07-12 11:50:46 -0400 |
---|---|---|
committer | Ben Kelly <btk@google.com> | 2017-07-13 09:37:42 -0400 |
commit | 79a50ba570e9026e219505f7b632fb49d79b13d7 (patch) | |
tree | bcf95997ab327052ec5df9fc7eb9c17ffe16b926 | |
parent | ac47c2e1ac4a80b4d6a01d1f7ab0659d3d538518 (diff) | |
download | wee-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.py | 2 |
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) |