diff options
author | Trygve Aaberge <trygveaa@gmail.com> | 2023-10-01 00:28:28 +0200 |
---|---|---|
committer | Trygve Aaberge <trygveaa@gmail.com> | 2023-10-01 00:28:28 +0200 |
commit | c23276aa33852e5d0817937895bd3effb2dec17b (patch) | |
tree | cd2211073f6dfb1a880ebed817a1e555f167b61d /wee_slack.py | |
parent | ddac981011d945c77cd95c86f46f91e51b4761d7 (diff) | |
download | wee-slack-c23276aa33852e5d0817937895bd3effb2dec17b.tar.gz |
Only open subscribed threads with auto_open_threads
Only subscribed threads can be marked as read. This means that if we
open other threads, they will be opened every time you reload wee-slack
which is impractical and annoying. Previously, any thread with a
highlight (in WeeChat, not necessarily a Slack highlight) was opened.
Fixes #803, fixes #830
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 d99d2a7..d160f1d 100644 --- a/wee_slack.py +++ b/wee_slack.py @@ -3553,7 +3553,7 @@ class SlackMessage(object): self.last_notify = max(message.ts, SlackTS()) - if config.auto_open_threads: + if config.auto_open_threads and self.subscribed: self.open_thread() if message.user_identifier != self.team.myidentifier and ( |