zulip-flutter
zulip-flutter copied to clipboard
mentions : make @-mentions tappable to navigate to user profiles
mentions: Enable navigation to user profiles on tap on chat threads
Before, tapping on an @-mention in a message had no effect. This was inconsistent with tapping a sender's name or avatar, which navigates to their profile in the thread . This change makes @-mentions tappable to provide a consistent user experience and match web functionality as mentioned in the issue
The HTML parser extracts the data-user-id" attribute from the mention's element and stores it in theUserMentionNode. The UserMentionwidget uses this "id" to wrap the text in aGestureDetector`,
navigating to the user's profile page on tap.
Working Demo
https://github.com/user-attachments/assets/b13e114c-1150-4c5d-8361-c5e566756923
Fixes : #1867