Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(case): handle no case conversation #5371

Merged
merged 4 commits into from
Nov 4, 2024
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: 2 additions & 2 deletions src/dispatch/case/flows.py
Original file line number Diff line number Diff line change
Expand Up @@ -173,8 +173,8 @@ def case_remove_participant_flow(
def update_conversation(case: Case, db_session: Session) -> None:
"""Updates external communication conversation."""

# if case has dedicated channel, there's no thread to update
if case.conversation.thread_id is None:
# if no case conversation or case has dedicated channel, there's no thread to update
if case.conversation is None or case.conversation.thread_id is None:
return

plugin = plugin_service.get_active_instance(
Expand Down
Loading