diff options
author | Trygve Aaberge <trygveaa@gmail.com> | 2020-05-05 09:01:35 +0200 |
---|---|---|
committer | Trygve Aaberge <trygveaa@gmail.com> | 2020-05-05 09:01:35 +0200 |
commit | 83f2070138971a87eb7114409c8f9672f5f4ad2b (patch) | |
tree | b656d7cfd0bd98b989853c2cc91955ae7c0bfcad | |
parent | 926b9eac7aa9e87fb0fe859d34e10195a2153a63 (diff) | |
download | wee-slack-83f2070138971a87eb7114409c8f9672f5f4ad2b.tar.gz |
Use reply_count instead of replies
The replies property doesn't exist anymore, it has been replaced by
reply_users and reply_users_count.
-rw-r--r-- | wee_slack.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/wee_slack.py b/wee_slack.py index 3cacb7e..b69c016 100644 --- a/wee_slack.py +++ b/wee_slack.py @@ -2607,7 +2607,7 @@ class SlackMessage(object): ",".join(self.channel.highlights())) def number_of_replies(self): - return max(len(self.submessages), len(self.message_json.get("replies", []))) + return max(len(self.submessages), self.message_json.get("reply_count", 0)) def notify_thread(self, action=None, sender_id=None): if config.auto_open_threads: |