diff options
Diffstat (limited to 'slack/slack_thread.py')
-rw-r--r-- | slack/slack_thread.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/slack/slack_thread.py b/slack/slack_thread.py index fbbeb21..1c94c7d 100644 --- a/slack/slack_thread.py +++ b/slack/slack_thread.py @@ -76,7 +76,11 @@ class SlackThread(SlackBuffer): 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] + sender_bot_ids = [ + m.sender_bot_id + for m in messages + if m.sender_bot_id and not m.sender_user_id + ] self.workspace.bots.initialize_items(sender_bot_ids) await gather(*(message.render(self.context) for message in messages)) |