diff options
author | Trygve Aaberge <trygveaa@gmail.com> | 2020-05-16 15:02:37 +0200 |
---|---|---|
committer | Trygve Aaberge <trygveaa@gmail.com> | 2020-05-30 21:13:21 +0200 |
commit | 940b15b0f359f4b551339622748741bafd4e4c76 (patch) | |
tree | ea9b8248fc4c2e9a88e08d47e2d32ccf557d3577 | |
parent | cd441f64fe106481e24cddfd0d9f3a956a76c969 (diff) | |
download | wee-slack-940b15b0f359f4b551339622748741bafd4e4c76.tar.gz |
Use parent channels hashed_messages in SlackThreadChannel
-rw-r--r-- | wee_slack.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/wee_slack.py b/wee_slack.py index 05c4cf5..95b2492 100644 --- a/wee_slack.py +++ b/wee_slack.py @@ -2355,7 +2355,6 @@ class SlackThreadChannel(SlackChannelCommon): self.parent_channel = parent_channel self.thread_ts = thread_ts self.messages = SlackThreadChannelMessages(self) - self.hashed_messages = SlackChannelHashedMessages(self) self.channel_buffer = None self.type = "thread" self.got_history = False @@ -2375,6 +2374,10 @@ class SlackThreadChannel(SlackChannelCommon): return self.parent_channel.messages[self.thread_ts] @property + def hashed_messages(self): + return self.parent_channel.hashed_messages + + @property def last_read(self): return self.parent_message.last_read |