eladkal commented on code in PR #63523:
URL: https://github.com/apache/airflow/pull/63523#discussion_r2935322809


##########
providers/slack/src/airflow/providers/slack/hooks/slack.py:
##########
@@ -310,6 +310,12 @@ def send_file_v1_to_v2(
         else:
             channels_to_share = [None]
 
+        if thread_ts is not None and len(channels_to_share) > 1:
+            raise ValueError(
+                "thread_ts cannot be used with multiple channels. "
+                "A thread belongs to a single channel; specify exactly one 
channel when replying in a thread."
+            )

Review Comment:
   My question is around the condition you added. It binds threads to channel 
check but threads exist also in direct messages



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to