Skip to content

Enable links in chat#17

Merged
keyboardsurfer merged 2 commits into
mainfrom
bw/urls
Jun 22, 2026
Merged

Enable links in chat#17
keyboardsurfer merged 2 commits into
mainfrom
bw/urls

Conversation

@keyboardsurfer

Copy link
Copy Markdown
Member

Enable links in chat

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request introduces a linkifyString utility to parse and format URLs as clickable links within chat messages, updating both the mobile and Wear OS chat screens to use it. Feedback on the changes highlights a bug where case-insensitive URL schemes (like HTTP://) are not handled correctly, resulting in malformed URLs. Additionally, calling linkifyString directly inside the Text composables triggers expensive regex matching on every recomposition; wrapping these calls in remember is recommended to prevent performance degradation and scrolling jank, particularly on resource-constrained Wear OS devices.

Important

The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.

Comment thread ChatApp/shared/src/main/kotlin/com/example/chatapp/util/Linkify.kt Outdated
@keyboardsurfer keyboardsurfer merged commit c1ba829 into main Jun 22, 2026
6 checks passed
@keyboardsurfer keyboardsurfer deleted the bw/urls branch June 22, 2026 17:59
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