<@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 | Default Value |
---|---|---|
mentionsWithTagInfo(bool 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. | false |
mentionsWithBlockedInfo(bool 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. | false |
mentionedUsers
property on any BaseMessage
. This property will return an array containing User objects of the mentioned users, or an empty array if no users were mentioned in the message.
hasMentionedMe
property on any BaseMessage
. This property will return a boolean value, true if the logged-in user has been mentioned, otherwise false
.