Skip to content
This repository was archived by the owner on Sep 3, 2025. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions src/dispatch/plugins/dispatch_slack/events.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,10 @@ def fetch_activity(client: WebClient, subject: None, oldest: str = "0") -> List:
log.warning("No conversation provided. Cannot fetch channel activity.")
elif not subject.conversation.channel_id:
log.warning("No channel id provided. Cannot fetch channel activity.")
elif subject.conversation.thread_id:
log.warning(
"Subject is a thread, not a channel. Fetching channel activity is not applicable for threads."
)
else:
return get_channel_activity(
client, conversation_id=subject.conversation.channel_id, oldest=oldest
Expand Down
Loading