diff options
author | Trygve Aaberge <trygveaa@gmail.com> | 2020-05-22 02:46:08 +0200 |
---|---|---|
committer | Trygve Aaberge <trygveaa@gmail.com> | 2020-06-04 21:40:59 +0200 |
commit | 01c366afcb6def266dc7d9c13e082756cddb6ab2 (patch) | |
tree | 912e157130b459b17894a180d762bf8a215be3ea | |
parent | b2b1b3bddf1593894a88eeb12b8edbed453acb65 (diff) | |
download | wee-slack-01c366afcb6def266dc7d9c13e082756cddb6ab2.tar.gz |
Mark thread as read when closing buffer
-rw-r--r-- | wee_slack.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/wee_slack.py b/wee_slack.py index af1f2ef..fc179fd 100644 --- a/wee_slack.py +++ b/wee_slack.py @@ -2548,6 +2548,8 @@ class SlackThreadChannel(SlackChannelCommon): self.channel_buffer = None self.got_history = False self.active = False + if update_remote and not self.eventrouter.shutting_down: + self.mark_read() def render(self, message, force=False): return message.render(force) |