aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTrygve Aaberge <trygveaa@gmail.com>2020-05-21 00:50:30 +0200
committerTrygve Aaberge <trygveaa@gmail.com>2020-05-21 13:03:36 +0200
commit7ef5eb3f0564075fefa240c2a2de3cb0b9f85eca (patch)
tree60ea9894f828fd1c159d0d56a65650d9b3f07b7f
parentccd8afed92c6b72b03bdd87c61fd11479f3d89d3 (diff)
downloadwee-slack-7ef5eb3f0564075fefa240c2a2de3cb0b9f85eca.tar.gz
Make SlackThreadChannel.members a property
SlackChannel.members is overwritten in set_members and user_joined, so it could become stale when it was an attribute.
-rw-r--r--wee_slack.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/wee_slack.py b/wee_slack.py
index f730801..2f5560e 100644
--- a/wee_slack.py
+++ b/wee_slack.py
@@ -2263,12 +2263,15 @@ class SlackThreadChannel(SlackChannelCommon):
self.type = "thread"
self.got_history = False
self.label = None
- self.members = self.parent_message.channel.members
self.team = self.parent_message.team
self.last_line_from = None
self.new_messages = False
@property
+ def members(self):
+ return self.parent_message.channel.members
+
+ @property
def last_read(self):
return self.parent_message.last_read