Skip to content

Commit d5ca2a7

Browse files
authored
Merge pull request #41402 from bernhardoj/fix/19558-keyboard-doesnt-show
Fix composer isn't auto focused when click reply in a thread
2 parents d74068e + 401c2ce commit d5ca2a7

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/libs/ReportUtils.ts

+1
Original file line numberDiff line numberDiff line change
@@ -6943,6 +6943,7 @@ export {
69436943
isDM,
69446944
isDefaultRoom,
69456945
isDeprecatedGroupDM,
6946+
isEmptyReport,
69466947
isRootGroupChat,
69476948
isExpenseReport,
69486949
isExpenseRequest,

src/pages/home/ReportScreen.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,7 @@ function ReportScreen({
279279

280280
const {reportPendingAction, reportErrors} = ReportUtils.getReportOfflinePendingActionAndErrors(report);
281281
const screenWrapperStyle: ViewStyle[] = [styles.appContent, styles.flex1, {marginTop: viewportOffsetTop}];
282-
const isEmptyChat = useMemo((): boolean => reportActions.length === 0, [reportActions]);
282+
const isEmptyChat = useMemo(() => ReportUtils.isEmptyReport(report), [report]);
283283
const isOptimisticDelete = report.statusNum === CONST.REPORT.STATUS_NUM.CLOSED;
284284
const isLinkedMessageAvailable = useMemo(
285285
(): boolean => sortedAllReportActions.findIndex((obj) => String(obj.reportActionID) === String(reportActionIDFromRoute)) > -1,

0 commit comments

Comments
 (0)