Skip to content

Fix links opening twice in mobile chat#86

Merged
gricha merged 1 commit intomainfrom
fix-double-link-open
Jan 10, 2026
Merged

Fix links opening twice in mobile chat#86
gricha merged 1 commit intomainfrom
fix-double-link-open

Conversation

@gricha
Copy link
Copy Markdown
Owner

@gricha gricha commented Jan 10, 2026

Summary

  • Return false from onLinkPress to prevent double URL opening
  • The library opens the URL by default when returning true, causing links to open twice

Fixes issue found by Sentry code review on #85.

🤖 Generated with Claude Code

Return false from onLinkPress to prevent react-native-markdown-display
from also opening the URL after we handle it manually.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@gricha gricha merged commit b47dcd7 into main Jan 10, 2026
9 checks passed
@gricha gricha deleted the fix-double-link-open branch January 10, 2026 23:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant