Skip to content

Commit

Permalink
Adjust last visited path to store workspaceID
Browse files Browse the repository at this point in the history
  • Loading branch information
WojtekBoman committed Jan 12, 2024
1 parent 420d94d commit 1f7f84d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/libs/Navigation/NavigationRoot.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type {NavigationState} from '@react-navigation/native';
import {DefaultTheme, getPathFromState, NavigationContainer} from '@react-navigation/native';
import {DefaultTheme, NavigationContainer} from '@react-navigation/native';
import React, {useEffect, useMemo, useRef} from 'react';
import useCurrentReportID from '@hooks/useCurrentReportID';
import useFlipper from '@hooks/useFlipper';
Expand All @@ -10,6 +10,7 @@ import {getPathFromURL} from '@libs/Url';
import {updateLastVisitedPath} from '@userActions/App';
import type {Route} from '@src/ROUTES';
import AppNavigator from './AppNavigator';
import customGetPathFromState from './customGetPathFromState';
import getStateFromPath from './getStateFromPath';
import linkingConfig from './linkingConfig';
import Navigation, {navigationRef} from './Navigation';
Expand All @@ -36,7 +37,7 @@ function parseAndLogRoute(state: NavigationState) {
return;
}

const currentPath = getPathFromState(state, linkingConfig.config);
const currentPath = customGetPathFromState(state, linkingConfig.config);
updateLastVisitedPath(currentPath);

// Don't log the route transitions from OldDot because they contain authTokens
Expand Down

0 comments on commit 1f7f84d

Please sign in to comment.