<@uid:UID>
format, where UID
represents the user’s unique identification.
Mentions are a powerful tool for enhancing communication in messaging platforms. They streamline interaction by allowing users to easily engage and collaborate with particular individuals, especially in group conversations.
<@uid:UID>
. For example, to mention the user with UID cometchat-uid-1
with the message “Hello
,” your text would be “Hello, <@uid:cometchat-uid-1>
”
Setting | Description |
---|---|
mentionsWithTagInfo(boolean value) | If set to true , SDK will fetch a list of messages where users are mentioned & will also fetch the tags of the mentioned users. Default value = false |
mentionsWithBlockedInfo(boolean value) | If set to true , SDK will fetch a list of messages where users are mentioned & will also fetch their blocked relationship with the logged-in user. Default value = false |
message.getMentionedUsers()
method. This method will return an array containing the mentioned users, or an empty array if no users were mentioned in the message.