Skip to content

Commit

Permalink
Rename resetHomeRouteParams function to resetNavigationState in Sessi…
Browse files Browse the repository at this point in the history
…on/index
  • Loading branch information
WojtekBoman committed Jan 31, 2025
1 parent 02d1614 commit 02eb7e1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/libs/actions/Session/index.ts
Original file line number Diff line number Diff line change
@@ -825,9 +825,9 @@ function clearSignInData() {
}

/**
* Reset all current params of the Home route
* Reset navigation state after logout
*/
function resetHomeRouteParams() {
function resetNavigationState() {
Navigation.isNavigationReady().then(() => {
navigationRef.resetRoot(navigationRef.getRootState());
Onyx.set(ONYXKEYS.IS_CHECKING_PUBLIC_ROOM, false);
@@ -849,7 +849,7 @@ function cleanupSession() {
PersistedRequests.clear();
NetworkConnection.clearReconnectionCallbacks();
SessionUtils.resetDidUserLogInDuringSession();
resetHomeRouteParams();
resetNavigationState();
clearCache().then(() => {
Log.info('Cleared all cache data', true, {}, true);
});

0 comments on commit 02eb7e1

Please sign in to comment.