From 184bf08360003538179e3c19b2711016c823eadd Mon Sep 17 00:00:00 2001 From: Trygve Aaberge Date: Sat, 14 Oct 2023 18:28:03 +0200 Subject: 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. --- slack/slack_message.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'slack/slack_message.py') 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) -- cgit