fix(weChat): 修正群聊ID赋值错误并优化初始化流程
- 将wechatChatroomId从contact.chatroomId改为contact.id以修复赋值错误 - 调整chatInitAPIdata中的初始化顺序,先获取群列表再处理唯一ID - 修改getUniqueWechatAccountIds函数参数以支持群组数据
This commit is contained in:
@@ -54,7 +54,7 @@ export const useWeChatStore = create<WeChatState>()(
|
||||
};
|
||||
|
||||
if ("chatroomId" in contact && contact.chatroomId) {
|
||||
params.wechatChatroomId = contact.chatroomId;
|
||||
params.wechatChatroomId = contact.id;
|
||||
} else {
|
||||
params.wechatFriendId = contact.id;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user