aboutsummaryrefslogtreecommitdiffstats
path: root/slack/slack_buffer.py
diff options
context:
space:
mode:
Diffstat (limited to 'slack/slack_buffer.py')
-rw-r--r--slack/slack_buffer.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/slack/slack_buffer.py b/slack/slack_buffer.py
index 18a0f89..2fe144d 100644
--- a/slack/slack_buffer.py
+++ b/slack/slack_buffer.py
@@ -256,6 +256,8 @@ class SlackBuffer(ABC):
backlog = message.ts <= self.last_read
tags = await message.tags(backlog)
weechat.prnt_date_tags(self.buffer_pointer, message.ts.major, tags, rendered)
+ if backlog:
+ weechat.buffer_set(self.buffer_pointer, "unread", "")
def _buffer_input_cb(self, data: str, buffer: str, input_data: str) -> int:
weechat.prnt(buffer, "Text: %s" % input_data)