Skip to content

Commit

Permalink
Merge pull request #37968 from narefyev91/fix-correct-redirects
Browse files Browse the repository at this point in the history
Fix correct redirects from chats to workspaces page
  • Loading branch information
mountiny authored Mar 8, 2024
2 parents 2c5d6c5 + 058f2d9 commit 69b2c87
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/libs/navigateAfterJoinRequest/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
2 changes: 1 addition & 1 deletion src/pages/workspace/WorkspaceJoinUserPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ function WorkspaceJoinUserPage({route, policies}: WorkspaceJoinUserPageProps) {
if (!isJoinLinkUsed) {
return;
}
Navigation.goBack(undefined, false, true);
navigateAfterJoinRequest();
}, []);

useEffect(() => {
Expand Down

0 comments on commit 69b2c87

Please sign in to comment.