From d0959cf58cd2632e3e3e523b672fe30028c4cb2c Mon Sep 17 00:00:00 2001 From: Arkadii Yakovets Date: Sat, 4 Jan 2025 19:43:39 -0800 Subject: [PATCH] Add a comment regarding the fix --- backend/apps/slack/events/team_join.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/apps/slack/events/team_join.py b/backend/apps/slack/events/team_join.py index 43d2a8eaa..d600f8132 100644 --- a/backend/apps/slack/events/team_join.py +++ b/backend/apps/slack/events/team_join.py @@ -35,7 +35,7 @@ def handler(event, client, ack): if not settings.SLACK_EVENTS_ENABLED: return - user_id = event["user"]["id"] + user_id = event["user"]["id"] # User object is returned -- other events return just the ID! try: conversation = client.conversations_open(users=user_id) except SlackApiError as e: