fix(core): 新入群拉不到成员列表时群消息不再整条丢失
- getGroupMember 在群成员缓存刷新失败时 members 为 undefined, 直接 members!.values() 抛 TypeError,整条群消息上报失败; 现在返回 undefined,拉取失败的结果也不再写进缓存 - 未缓存的群刚刷新过就不再重复强制拉取,群消息处理里也去掉重复查询 - 临时会话按来源群号查成员,之前误把对方 QQ 号当群号去拉成员列表 - uin 转 uid 在 NT 接口都查不到时,先从已缓存的群成员里找 Refs #2070
This commit is contained in:
4 files changed
+173
-9
No files matched your search
@@ -198,6 +198,7 @@ export class NTQQUserApi {
|
||||
.add(() => this.context.session.getUixConvertService().getUid([uin]).then((data) => data.uidInfo.get(uin)))
|
||||
.add(() => this.context.session.getProfileService().getUidByUin('FriendsServiceImpl', [uin]).get(uin))
|
||||
.add(() => this.context.session.getGroupService().getUidByUins([uin]).then((data) => data.uids.get(uin)))
|
||||
.add(() => this.core.apis.GroupApi.getUidFromMemberCache(uin))
|
||||
.add(() => this.getUserDetailInfoByUin(uin).then((data) => data.detail.uid));
|
||||
|
||||
const uid = await fallback.run().catch(() => '');
|
||||
|
||||
Reference in new issue
Block a user