wildfirechat / wfc_flutter_plugins

野火flutter插件,包含即时通讯和实时音视频插件
Other
35 stars 26 forks source link

群聊发送 at 消息收不到对应的 unreadMention #78

Closed liaovq closed 9 months ago

liaovq commented 9 months ago

发送消息时

        txt.mentionedType = 1;
        txt.mentionedTargets = getMentionedUserIds(text);

然后上面对应的 userId 那个号 Conversation 上的 unreadMention 一直是 0

conversationInfo.unreadCount.unreadMention
imndx commented 9 months ago

最新代码无法复现

image
liaovq commented 9 months ago

更新代码后依旧不行 发送的代码有什么问题吗

txt.mentionedType = 1;
txt.mentionedTargets = getMentionedUserIds(text);
imndx commented 9 months ago

看起来没什么问题,你可以打印看下mentionedTargets的值,这应当是个数组,包含群里面,所有要@的群成员的用户 id

liaovq commented 9 months ago

发消息时,如果有at相关内容,会在发消息时做

txt.mentionedType = 1;
txt.mentionedTargets = getMentionedUserIds(text);

以下是相关日志

Snipaste_2023-11-09_13-49-24

接收消息时,如果有 at 那么接收到的内容是没有 mentioned 的相关信息

Snipaste_2023-11-09_13-52-22