Skip to content

Commit

Permalink
Handle no case conversation
Browse files Browse the repository at this point in the history
  • Loading branch information
whitdog47 committed Oct 22, 2024
1 parent 70b554a commit d775be6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/dispatch/case/flows.py
Original file line number Diff line number Diff line change
Expand Up @@ -174,8 +174,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

0 comments on commit d775be6

Please sign in to comment.