stream-chat-android icon indicating copy to clipboard operation
stream-chat-android copied to clipboard

Highlighting and tapping on user mentions

Open matteinn opened this issue 1 year ago • 2 comments

Describe the feature you'd like to see in the SDK

Recently on the iOS SwiftUI repo you have rolled out the ability to highlight and tap on user mentions. With feature parity in mind, it is reasonable to expect to see the same feature on the android library at some point. Do you have any plans for that?

See release 4.53.0: https://github.com/GetStream/stream-chat-swiftui/releases/tag/4.53.0

matteinn avatar May 16 '24 14:05 matteinn

Hi @matteinn Can you please share more info on how we expect this behaviour to look like

Maybe share how it works on the iOS App

should clicking the user mention navigate you to the user chat or do we expect a dialog to show Or is the goal to keep it open for the user to decide what to do?

Apologies if my questions are "useless" I'm very much new to this project and just trying to find my way around

VIPlearner avatar Sep 09 '24 07:09 VIPlearner

Hello! The iOS implementation is shown in this PR: user mentions (e.g. @matteinn) are highlighted inside messages and clicking on them will trigger a special link to be opened, which has this format getstream://mention/{messageId/{userId}. That link can be intercepted by the app using the SDK and do whatever is needed with that. In my case, that will open the user profile page after extracting the userId from that url.

matteinn avatar Sep 09 '24 08:09 matteinn

This was solved here.

aleksandar-apostolov avatar Nov 04 '24 09:11 aleksandar-apostolov