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

Fine grained mention system customizations

Open fgirardey opened this issue 11 months ago • 1 comments

I need to implement a feature where users can mention other users by their name OR by their role (example: @Developer)

As of today, when the MessageComposerController build a message before sending it, it will build the mentionedUsersIds list by looking for @${it.name.lowercase()}, see: MessageComposerController.filterMentions().

But i didn't found a way to override this behavior. Of course i could override the various onSendMessage composable methods but it doesn't seem to be reliable because the message send action could be sent through various composable, especially when I only use screen level composables and only customize what i need through the ChatComponentFactory.

fgirardey avatar Mar 07 '25 07:03 fgirardey

Hi @fgirardey,

Thank you for the proposal, I will take the request up for discussion internally, and we will get back to you!

Best regards, Petar

VelikovPetar avatar Mar 28 '25 15:03 VelikovPetar