Skip to content

Commit

Permalink
Remove scroll position check
Browse files Browse the repository at this point in the history
  • Loading branch information
janicduplessis committed May 17, 2024
1 parent 7a4dc77 commit ca83b39
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 @@ -596,7 +596,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 ca83b39

Please sign in to comment.