Skip to content

Commit

Permalink
[C-5197] Fix native comment show more/less collapse (#10121)
Browse files Browse the repository at this point in the history
  • Loading branch information
dylanjeffers authored Oct 18, 2024
1 parent c971230 commit 109abfa
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 2 additions & 1 deletion packages/common/src/adapters/notification.ts
Original file line number Diff line number Diff line change
Expand Up @@ -531,7 +531,8 @@ export const notificationFromSDK = (
entityId = HashId.parse(data.entityId)
// @ts-ignore
entityType = data.type
return HashId.parse(data.commentUserId)
// @ts-ignore TODO: remove this when comments goes live.
return HashId.parse(data.commentUserId ?? data.userId)
})
.filter(removeNullable)
return {
Expand Down
4 changes: 3 additions & 1 deletion packages/mobile/src/components/core/UserGeneratedText.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,8 @@ export const UserGeneratedText = (props: UserGeneratedTextProps) => {
matchers,
internalLinksOnly,
navigation,
onTextLayout,
numberOfLines,
...other
} = props

Expand Down Expand Up @@ -292,7 +294,7 @@ export const UserGeneratedText = (props: UserGeneratedTextProps) => {
pointerEvents={allowPointerEventsToPassThrough ? 'none' : undefined}
ref={linkContainerRef}
>
<Text>
<Text onTextLayout={onTextLayout} numberOfLines={numberOfLines}>
<Autolink
renderLink={
allowPointerEventsToPassThrough ? renderHiddenLink : renderLink
Expand Down

0 comments on commit 109abfa

Please sign in to comment.