uid
. To mention a user in a message, the message text should contain the uid
in following format: <@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(bool value) | If set to true , SDK will fetch a list of messages where users are mentioned and will also fetch the tags of the mentioned users. Default value is false . |
mentionsWithBlockedInfo(bool value) | If set to true , SDK will fetch a list of messages where users are mentioned and will also fetch their blocked relationship with the logged-in user. Default value is false . |
mentionedUsers
method on any BaseMessage
. This method will return an array containing User objects of the mentioned users, or an empty array if no users were mentioned in the message.
mentionedMe
method on any BaseMessage
. This method will return a boolean value, true
if the logged-in user has been mentioned, otherwise false
.