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 cb5e53f..e290933 100644
--- a/slack/slack_conversation.py
+++ b/slack/slack_conversation.py
@@ -156,6 +156,11 @@ class SlackConversation(SlackBuffer):
def last_read(self) -> SlackTs:
return SlackTs(self._info["last_read"])
+ @last_read.setter
+ def last_read(self, value: SlackTs):
+ self._info["last_read"] = value
+ self.set_unread_and_hotlist()
+
async def sort_key(self) -> str:
type_sort_key = {
"channel": 0,