aboutsummaryrefslogtreecommitdiffstats
path: root/slack/slack_conversation.py
diff options
context:
space:
mode:
Diffstat (limited to 'slack/slack_conversation.py')
-rw-r--r--slack/slack_conversation.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/slack/slack_conversation.py b/slack/slack_conversation.py
index e290933..aa8c66e 100644
--- a/slack/slack_conversation.py
+++ b/slack/slack_conversation.py
@@ -529,3 +529,8 @@ class SlackConversation(SlackBuffer):
else:
nick = await message.nick(colorize=False, only_nick=True)
self.nicklist_add_user(sender, nick)
+
+ async def mark_read(self):
+ last_read_line_ts = self.last_read_line_ts()
+ if last_read_line_ts and last_read_line_ts != self.last_read:
+ await self._api.conversations_mark(self, last_read_line_ts)