From fbe07f2ebfba7f345baed8172966de1a06405084 Mon Sep 17 00:00:00 2001 From: dukenv0307 Date: Fri, 2 Feb 2024 09:50:31 +0700 Subject: [PATCH 1/2] fix leaving room issue --- src/pages/home/ReportScreen.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/pages/home/ReportScreen.js b/src/pages/home/ReportScreen.js index ffd782b944a2..620afdb840f5 100644 --- a/src/pages/home/ReportScreen.js +++ b/src/pages/home/ReportScreen.js @@ -202,6 +202,7 @@ function ReportScreen({ notificationPreference: reportProp.notificationPreference, isPinned: reportProp.isPinned, chatReportID: reportProp.chatReportID, + visibility: reportProp.visibility, }), [ reportProp.lastReadTime, @@ -234,6 +235,7 @@ function ReportScreen({ reportProp.notificationPreference, reportProp.isPinned, reportProp.chatReportID, + reportProp.visibility, ], ); From 7c4453d8961f623d83761b0bf77dc34b76b1ce53 Mon Sep 17 00:00:00 2001 From: dukenv0307 Date: Fri, 2 Feb 2024 11:30:25 +0700 Subject: [PATCH 2/2] fix add visibility to memo --- src/pages/home/ReportScreen.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/pages/home/ReportScreen.js b/src/pages/home/ReportScreen.js index 620afdb840f5..f671f14813d2 100644 --- a/src/pages/home/ReportScreen.js +++ b/src/pages/home/ReportScreen.js @@ -669,6 +669,7 @@ export default compose( prevProps.report.notificationPreference === nextProps.report.notificationPreference && prevProps.report.isPinned === nextProps.report.isPinned && prevProps.report.chatReportID === nextProps.report.chatReportID && + prevProps.report.visibility === nextProps.report.visibility && prevProps.viewportOffsetTop === nextProps.viewportOffsetTop, ), );