Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Highlighting and tapping on user mentions #5263

Open
matteinn opened this issue May 16, 2024 · 2 comments · Fixed by #5408
Open

Highlighting and tapping on user mentions #5263

matteinn opened this issue May 16, 2024 · 2 comments · Fixed by #5408

Comments

@matteinn
Copy link
Contributor

matteinn commented May 16, 2024

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

@VIPlearner
Copy link
Contributor

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

@matteinn
Copy link
Contributor Author

matteinn commented Sep 9, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants