Skip to content

Commit

Permalink
Revert "fix: prevent open search when onboarding is not completed"
Browse files Browse the repository at this point in the history
  • Loading branch information
mountiny authored Nov 13, 2024
1 parent bf696c5 commit a4e78aa
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions src/libs/Navigation/AppNavigator/AuthScreens.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -261,12 +261,6 @@ function AuthScreens({session, lastOpenedPublicRoomID, initialLastUpdateIDApplie
isInitialRender.current = false;
}

const isOnboardingCompletedRef = useRef(isOnboardingCompleted);

useEffect(() => {
isOnboardingCompletedRef.current = isOnboardingCompleted;
}, [isOnboardingCompleted]);

useEffect(() => {
const shortcutsOverviewShortcutConfig = CONST.KEYBOARD_SHORTCUTS.SHORTCUTS;
const searchShortcutConfig = CONST.KEYBOARD_SHORTCUTS.SEARCH;
Expand Down Expand Up @@ -363,9 +357,6 @@ function AuthScreens({session, lastOpenedPublicRoomID, initialLastUpdateIDApplie
searchShortcutConfig.shortcutKey,
() => {
Session.checkIfActionIsAllowed(() => {
if (!isOnboardingCompletedRef.current) {
return;
}
toggleSearchRouter();
})();
},
Expand Down

0 comments on commit a4e78aa

Please sign in to comment.