Skip to content

Commit

Permalink
Update comment ReportSceen
Browse files Browse the repository at this point in the history
Co-authored-by: Joel Davies <joeld.dev@gmail.com>
  • Loading branch information
dukenv0307 and jjcoffee authored Mar 14, 2024
1 parent fc2de78 commit f518953
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pages/home/ReportScreen.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,7 @@ function ReportScreen({
// eslint-disable-next-line react-hooks/exhaustive-deps
}, []);

// Open report when the user has left the thread and go back with back button
// If a user has chosen to leave a thread, and then returns to it (e.g. with the back button), we need to call `openReport` again in order to allow the user to rejoin and to receive real-time updates
useEffect(() => {
if (!isFocused || prevIsFocused || !ReportUtils.isChatThread(report) || report.notificationPreference !== CONST.REPORT.NOTIFICATION_PREFERENCE.HIDDEN) {
return;
Expand Down

0 comments on commit f518953

Please sign in to comment.