Skip to content

Commit

Permalink
Merge pull request #41402 from bernhardoj/fix/19558-keyboard-doesnt-show
Browse files Browse the repository at this point in the history
Fix composer isn't auto focused when click reply in a thread
  • Loading branch information
johnmlee101 authored May 31, 2024
2 parents d74068e + 401c2ce commit d5ca2a7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/libs/ReportUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6943,6 +6943,7 @@ export {
isDM,
isDefaultRoom,
isDeprecatedGroupDM,
isEmptyReport,
isRootGroupChat,
isExpenseReport,
isExpenseRequest,
Expand Down
2 changes: 1 addition & 1 deletion src/pages/home/ReportScreen.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@ function ReportScreen({

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

0 comments on commit d5ca2a7

Please sign in to comment.