diff options
author | Trygve Aaberge <trygveaa@gmail.com> | 2023-08-20 19:11:37 +0200 |
---|---|---|
committer | Trygve Aaberge <trygveaa@gmail.com> | 2024-02-18 11:32:53 +0100 |
commit | 9a92344a77731f443d19dfdb24a6a47a1b7dc9ce (patch) | |
tree | 8f593e70a3bb25e8d1cd526fbbd9aa5d6dc87083 /slack | |
parent | 899ce2af752351871c94c0b8623dfc28cdac074f (diff) | |
download | wee-slack-9a92344a77731f443d19dfdb24a6a47a1b7dc9ce.tar.gz |
Initialize fetching bots info when filling history
Diffstat (limited to 'slack')
-rw-r--r-- | slack/slack_conversation.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/slack/slack_conversation.py b/slack/slack_conversation.py index 6e9aa50..ddc2054 100644 --- a/slack/slack_conversation.py +++ b/slack/slack_conversation.py @@ -327,6 +327,9 @@ class SlackConversation: sender_user_ids = [m.sender_user_id for m in messages if m.sender_user_id] self.workspace.users.initialize_items(sender_user_ids) + sender_bot_ids = [m.sender_bot_id for m in messages if m.sender_bot_id] + self.workspace.bots.initialize_items(sender_bot_ids) + await gather(*(message.render() for message in messages)) for message in reversed(messages): |