Skip to content

Commit

Permalink
fix: fixwes after rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
barttom committed Oct 25, 2023
1 parent f0981d1 commit a16c3ff
Showing 1 changed file with 2 additions and 15 deletions.
17 changes: 2 additions & 15 deletions src/libs/Navigation/AppNavigator/AuthScreens.js
Original file line number Diff line number Diff line change
Expand Up @@ -229,26 +229,13 @@ function AuthScreens({isUsingMemoryOnlyKeys, lastUpdateIDAppliedToClient, sessio
const unsubscribeSearchShortcut = KeyboardShortcut.subscribe(
searchShortcutConfig.shortcutKey,
() => {
Modal.close(() => {
if (Navigation.isActiveRoute(ROUTES.SEARCH)) {
return;
}
return Navigation.navigate(ROUTES.SEARCH);
});
Modal.close(Session.checkIfActionIsAllowed(() => Navigation.navigate(ROUTES.SEARCH)));
},
shortcutsOverviewShortcutConfig.descriptionKey,
shortcutsOverviewShortcutConfig.modifiers,
true,
);
this.unsubscribeSearchShortcut = KeyboardShortcut.subscribe(
searchShortcutConfig.shortcutKey,
() => {
Modal.close(() => Navigation.navigate(ROUTES.SEARCH));
},
searchShortcutConfig.descriptionKey,
searchShortcutConfig.modifiers,
true,
);

const unsubscribeChatShortcut = KeyboardShortcut.subscribe(
chatShortcutConfig.shortcutKey,
() => {
Expand Down

0 comments on commit a16c3ff

Please sign in to comment.