Skip to content

Commit

Permalink
Merge pull request #35453 from bernhardoj/fix/35121-can't-go-back
Browse files Browse the repository at this point in the history
Fix can't go back after opening a public room as anonymous user and reopen the app
  • Loading branch information
thienlnam authored Feb 2, 2024
2 parents fdb0c22 + a41b112 commit 6146600
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libs/actions/Report.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2145,7 +2145,7 @@ function openReportFromDeepLink(url: string, isAuthenticated: boolean) {
navigateToConciergeChat(true);
return;
}
if (Session.isAnonymousUser() && !Session.canAccessRouteByAnonymousUser(route)) {
if (route && Session.isAnonymousUser() && !Session.canAccessRouteByAnonymousUser(route)) {
Session.signOutAndRedirectToSignIn(true);
return;
}
Expand Down

0 comments on commit 6146600

Please sign in to comment.