Skip to content

Commit

Permalink
Add missing on continue dialog
Browse files Browse the repository at this point in the history
  • Loading branch information
marvinbuss committed Sep 17, 2024
1 parent 469baa3 commit f64e1ec
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions code/backend/dialogs/logout_dialog.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,17 @@ async def on_begin_dialog(
return result
return await super().on_begin_dialog(inner_dc=inner_dc, options=options)

async def on_continue_dialog(self, inner_dc: DialogContext) -> DialogTurnResult:
"""Called when the dialog is continued.
inner_dc (DialogContext): Inner dialog context within the dialog.
RETURNS (DialogTurnResult): Dialog step result.
"""
result = await self._interrupt(inner_dc=inner_dc)
if result:
return result
return await super().on_continue_dialog(inner_dc=inner_dc)

async def __interrupt(self, inner_dc: DialogContext) -> DialogTurnResult:
"""Called when the dialog is started and pushed onto the parent's dialog stack.
Expand Down

0 comments on commit f64e1ec

Please sign in to comment.