Skip to content

Commit

Permalink
fix navigating to new chat page via keyboard shortcut
Browse files Browse the repository at this point in the history
  • Loading branch information
jasperhuangg committed Sep 18, 2023
1 parent 6be8fca commit 30ad2c3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/libs/Navigation/AppNavigator/AuthScreens.js
Original file line number Diff line number Diff line change
Expand Up @@ -182,10 +182,10 @@ class AuthScreens extends React.Component {
chatShortcutConfig.shortcutKey,
() => {
Modal.close(() => {
if (Navigation.isActiveRoute(ROUTES.NEW_CHAT)) {
if (Navigation.isActiveRoute(ROUTES.NEW)) {
return;
}
Navigation.navigate(ROUTES.NEW_CHAT);
Navigation.navigate(ROUTES.NEW);
});
},
chatShortcutConfig.descriptionKey,
Expand Down

0 comments on commit 30ad2c3

Please sign in to comment.