Web App: Support setup closing behavior from event (#6507)

This commit is contained in:
Alexander Zinchuk 2025-12-08 17:39:19 +01:00
parent 4c43d8abf8
commit 047631473b

View File

@ -631,7 +631,7 @@ const WebAppModalTabContent: FC<OwnProps & StateProps> = ({
}
if (eventType === 'web_app_setup_closing_behavior') {
updateCurrentWebApp({ shouldConfirmClosing: true });
updateCurrentWebApp({ shouldConfirmClosing: eventData.need_confirmation });
}
if (eventType === 'web_app_open_popup') {