aboutsummaryrefslogtreecommitdiffstats
path: root/wee_slack.py
diff options
context:
space:
mode:
authorTrygve Aaberge <trygveaa@gmail.com>2023-10-01 00:40:17 +0200
committerTrygve Aaberge <trygveaa@gmail.com>2023-10-01 00:40:17 +0200
commitbc1c2b6373a999c671a32f6f3d20146bbd90109c (patch)
tree09422185c576e29f0ddde604d6dc94f0a0b75463 /wee_slack.py
parentc23276aa33852e5d0817937895bd3effb2dec17b (diff)
downloadwee-slack-bc1c2b6373a999c671a32f6f3d20146bbd90109c.tar.gz
Mark conversation/thread as read when `/buffer set unread` is run
It already marks it as read when `/input set_unread_current_buffer` is run, but this command was replaced with `/buffer set unread` in WeeChat 3.8.
Diffstat (limited to 'wee_slack.py')
-rw-r--r--wee_slack.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/wee_slack.py b/wee_slack.py
index d160f1d..e6c8e62 100644
--- a/wee_slack.py
+++ b/wee_slack.py
@@ -6616,6 +6616,7 @@ def setup_hooks():
w.hook_command_run(
"/input set_unread_current_buffer", "set_unread_current_buffer_cb", ""
)
+ w.hook_command_run("/buffer set unread", "set_unread_current_buffer_cb", "")
w.hook_command_run("/away", "away_command_cb", "")
w.hook_command_run("/whois", "whois_command_cb", "")