From 058f2d90b596823951022eef0965952eb39654b1 Mon Sep 17 00:00:00 2001 From: Nicolay Arefyeu Date: Fri, 8 Mar 2024 15:28:26 +0200 Subject: [PATCH] Fix correct redirects from chats to workspaces page --- src/libs/navigateAfterJoinRequest/index.ts | 1 + src/pages/workspace/WorkspaceJoinUserPage.tsx | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/libs/navigateAfterJoinRequest/index.ts b/src/libs/navigateAfterJoinRequest/index.ts index b9e533208ec2..b53c59d678c9 100644 --- a/src/libs/navigateAfterJoinRequest/index.ts +++ b/src/libs/navigateAfterJoinRequest/index.ts @@ -4,5 +4,6 @@ import ROUTES from '@src/ROUTES'; const navigateAfterJoinRequest = () => { Navigation.goBack(undefined, false, true); Navigation.navigate(ROUTES.ALL_SETTINGS); + Navigation.navigate(ROUTES.SETTINGS_WORKSPACES); }; export default navigateAfterJoinRequest; diff --git a/src/pages/workspace/WorkspaceJoinUserPage.tsx b/src/pages/workspace/WorkspaceJoinUserPage.tsx index 8167e6fc1ebf..ffcf871ae70d 100644 --- a/src/pages/workspace/WorkspaceJoinUserPage.tsx +++ b/src/pages/workspace/WorkspaceJoinUserPage.tsx @@ -36,7 +36,7 @@ function WorkspaceJoinUserPage({route, policies}: WorkspaceJoinUserPageProps) { if (!isJoinLinkUsed) { return; } - Navigation.goBack(undefined, false, true); + navigateAfterJoinRequest(); }, []); useEffect(() => {