Skip to content

Commit

Permalink
dialog: set a termination reason for CANCELled dlgs
Browse files Browse the repository at this point in the history
Close #1481
  • Loading branch information
razvancrainea committed Jul 18, 2019
1 parent 6e39385 commit f21e0bb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions modules/dialog/dlg_handlers.c
Expand Up @@ -492,6 +492,7 @@ static void dlg_onreply(struct cell* t, int type, struct tmcb_params *param)
/* only if we did force match the Cancel to the
* dialog before ( from the script ) */
dlg->flags |= DLG_FLAG_WAS_CANCELLED;
init_dlg_term_reason(dlg,"Cancelled",sizeof("Cancelled")-1);

if (dlg->flags & DLG_FLAG_END_ON_RACE_CONDITION &&
dlg->state>= DLG_STATE_CONFIRMED_NA) {
Expand Down

0 comments on commit f21e0bb

Please sign in to comment.