mentionedUsers property
The mentioned users of the message.
Implementation
List<User> get mentionedUsers {
if (chat.chatContext.options.useMemberInfoInMessage) {
final channel =
chat.channelCache.find<BaseChannel>(channelKey: channelUrl);
if (channel is GroupChannel) {
for (final mentionedUser in _mentionedUsers) {
final member = channel.getMember(mentionedUser.userId);
if (member != null) {
mentionedUser.nickname = member.nickname;
mentionedUser.profileUrl = member.profileUrl;
mentionedUser.metaData = member.metaData;
}
}
}
}
return _mentionedUsers;
}
Implementation
set mentionedUsers(value) => _mentionedUsers = value;