<@uid:UID_OF_THE_USER>
. For example, to mention the user with UID cometchat-uid-1 in a text message, your text should be "<@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.
hasMentionedMe()
method on any BaseMessage
. This method will return a boolean value, true
if the logged-in user has been mentioned, otherwise false
.