Mention in Comments

You can mention users in comments and replies. Just type the @ symbol before the user display name. Typing @ also activates the mention search so you can select from the search result the display name of the users that you want to mention.

How mention works

You can define your own structure to represent mentions. Pass your data structure inside metadata property to save the state of how you’ll represent your mention highlight.

Create a mention in comment/reply

To create a comment/reply with mentions, use the sample code below.

Update a comment/reply with mention

To update a comment/reply with mentions, use the sample code below.

Highlighting Mentions

There is no restrictions over how you'll handle the highlighting the mentions in your UI. At Amity, we pass this metadata property inside CommentRepository.createTextcomment and CommentRepository.editTextComment along with other parameters to conveniently highlight across the platforms.

Last updated