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.
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
MessageComposerControllerbuild a message before sending it, it will build thementionedUsersIdslist 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
onSendMessagecomposable 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 theChatComponentFactory.