Skip to content

Commit

Permalink
Merge pull request #42332 from janicduplessis/@janic/fix-show-header
Browse files Browse the repository at this point in the history
Fix canShowHeader logic
  • Loading branch information
mountiny authored May 28, 2024
2 parents 536e3a4 + ca83b39 commit 96425fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pages/home/report/ReportActionsList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -600,7 +600,7 @@ function ReportActionsList({
const extraData = useMemo(() => [isSmallScreenWidth ? currentUnreadMarker : undefined, ReportUtils.isArchivedRoom(report)], [currentUnreadMarker, isSmallScreenWidth, report]);
const hideComposer = !ReportUtils.canUserPerformWriteAction(report);
const shouldShowReportRecipientLocalTime = ReportUtils.canShowReportRecipientLocalTime(personalDetailsList, report, currentUserPersonalDetails.accountID) && !isComposerFullSize;
const canShowHeader = !isOffline && !hasHeaderRendered.current && scrollingVerticalOffset.current > VERTICAL_OFFSET_THRESHOLD;
const canShowHeader = isOffline || hasHeaderRendered.current;

const contentContainerStyle: StyleProp<ViewStyle> = useMemo(
() => [styles.chatContentScrollView, isLoadingNewerReportActions && canShowHeader ? styles.chatContentScrollViewWithHeaderLoader : {}],
Expand Down

0 comments on commit 96425fa

Please sign in to comment.