diff options
author | Trygve Aaberge <trygveaa@gmail.com> | 2023-10-14 18:28:03 +0200 |
---|---|---|
committer | Trygve Aaberge <trygveaa@gmail.com> | 2024-02-18 11:32:54 +0100 |
commit | 184bf08360003538179e3c19b2711016c823eadd (patch) | |
tree | e7f77291fcb56dba5b28ebc4431f9ce26816254d /slack/slack_message.py | |
parent | e8c464b7e3512e39c7c1d97a78904ae7b437f932 (diff) | |
download | wee-slack-184bf08360003538179e3c19b2711016c823eadd.tar.gz |
Apply highlights in chat even when notify is none
When notify is none, the buffer should not appear in the hotlist even
for a highlight. However, when switching to the buffer, we want the line
to be highlighted. To achieve this use a tag added to highlight_tags on
the buffer.
Diffstat (limited to 'slack/slack_message.py')
-rw-r--r-- | slack/slack_message.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/slack/slack_message.py b/slack/slack_message.py index c51c8b4..ddb2ceb 100644 --- a/slack/slack_message.py +++ b/slack/slack_message.py @@ -383,7 +383,10 @@ class SlackMessage: elif priority == MessagePriority.LOW: return None elif priority == MessagePriority.NONE: - return "notify_none" + tags = ["notify_none"] + if self.should_highlight(False): + tags.append(shared.highlight_tag) + return ",".join(tags) else: assert_never(priority) |