Skip to content

Commit

Permalink
Merge pull request Expensify#32611 from Expensify/marcaaron-fixInAppD…
Browse files Browse the repository at this point in the history
…eepLinks

[CP Staging] Fix deep linking to internal chats
  • Loading branch information
robertjchen authored Dec 7, 2023
2 parents 2fd1bb8 + c9df370 commit a2cf591
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ function AnchorRenderer(props) {
key={props.key}
displayName={displayName}
// Only pass the press handler for internal links. For public links or whitelisted internal links fallback to default link handling
onPress={internalNewExpensifyPath || internalExpensifyPath ? Link.openLink : undefined}
onPress={internalNewExpensifyPath || internalExpensifyPath ? () => Link.openLink(attrHref, environmentURL, isAttachment) : undefined}
>
<TNodeChildrenRenderer tnode={props.tnode} />
</AnchorForCommentsOnly>
Expand Down

0 comments on commit a2cf591

Please sign in to comment.