Skip to content

Commit

Permalink
try to close app
Browse files Browse the repository at this point in the history
  • Loading branch information
Kon committed Nov 25, 2023
1 parent 18ab211 commit 4df5843
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/core/hooks/useInviteToChat.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,8 @@ export const useInviteToChat = () => {
.then(data => {
if (!data.result) {
routeNavigator.showPopout(popup(`/${FPanel.LobbyInvited}/${lobbyId}`));
} else if (config.closeApp) {
vkBridge.send('VKWebAppClose');
}
})
.catch(() => {
Expand Down

0 comments on commit 4df5843

Please sign in to comment.