diff options
author | Zachary Ware <zachary.ware@gmail.com> | 2020-04-12 14:23:54 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-12 21:23:54 +0200 |
commit | 892fd8626df69ceae3041844db92579b17acc3b9 (patch) | |
tree | 00eeacec45ae95bacb60dd7de280d3663c4860b7 /wee_slack.py | |
parent | c77cbc882747f82def128a5c534619a667ce8b9d (diff) | |
download | wee-slack-892fd8626df69ceae3041844db92579b17acc3b9.tar.gz |
Don't notify about threads when they're opened in the channel (#763)
Diffstat (limited to 'wee_slack.py')
-rw-r--r-- | wee_slack.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/wee_slack.py b/wee_slack.py index 162b41b..3e1fe24 100644 --- a/wee_slack.py +++ b/wee_slack.py @@ -2588,6 +2588,9 @@ class SlackMessage(object): def notify_thread(self, action=None, sender_id=None): if config.auto_open_threads: self.open_thread() + elif config.thread_messages_in_channel: + # The usual notifications should occur in the channel, no need to notify elsewhere + pass elif sender_id != self.team.myidentifier: if action == "mention": template = "You were mentioned in thread {hash}, channel {channel}" |