aboutsummaryrefslogtreecommitdiffstats
path: root/slack/slack_conversation.py
diff options
context:
space:
mode:
Diffstat (limited to 'slack/slack_conversation.py')
-rw-r--r--slack/slack_conversation.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/slack/slack_conversation.py b/slack/slack_conversation.py
index fefcdfa..5ccd85d 100644
--- a/slack/slack_conversation.py
+++ b/slack/slack_conversation.py
@@ -302,7 +302,11 @@ class SlackConversation(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))