diff options
author | Ben Kelly <bk@ancilla.ca> | 2017-07-21 14:38:53 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-07-21 14:38:53 -0400 |
commit | 0523eb9ca47b0d472f2981c700461ed78c576bff (patch) | |
tree | da05d557214afbb5297b82f8e6f5ebbab89abd52 /wee_slack.py | |
parent | 78af3f21b378c090493bdbc63bc7f3046426d5ed (diff) | |
parent | 79a50ba570e9026e219505f7b632fb49d79b13d7 (diff) | |
download | wee-slack-0523eb9ca47b0d472f2981c700461ed78c576bff.tar.gz |
Merge pull request #394 from ToxicFrog/toxicfrog/typing-notifications
Don't send typing notifications for threads, since Slack doesn't like that
Diffstat (limited to 'wee_slack.py')
-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 1e59515..0da53f0 100644 --- a/wee_slack.py +++ b/wee_slack.py @@ -697,7 +697,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) |