mirror of
https://github.com/NapNeko/NapCatQQ.git
synced 2024-11-16 13:01:14 +00:00
chore: 去掉无用注释
This commit is contained in:
parent
24564f4c74
commit
99ca79ac7d
@ -102,7 +102,6 @@ async function createContext(coreContext: NapCatCore, payload: OB11PostSendMsg,
|
||||
if (!Uid) throw '无法获取用户信息';
|
||||
const isBuddy = await NTQQFriendApi.isBuddy(Uid);
|
||||
if (!isBuddy) {
|
||||
//筛选被动C2CGroup临时会话
|
||||
const ret = await NTQQMsgApi.getTempChatInfo(ChatType.KCHATTYPETEMPC2CFROMGROUP, Uid);
|
||||
if (ret.tmpChatInfo?.groupCode) {
|
||||
return {
|
||||
@ -111,7 +110,6 @@ async function createContext(coreContext: NapCatCore, payload: OB11PostSendMsg,
|
||||
guildId: '',
|
||||
};
|
||||
}
|
||||
//带有group_id的C2CGroup主动临时会话
|
||||
if (payload.group_id) {
|
||||
return {
|
||||
chatType: ChatType.KCHATTYPETEMPC2CFROMGROUP,
|
||||
@ -119,14 +117,12 @@ async function createContext(coreContext: NapCatCore, payload: OB11PostSendMsg,
|
||||
guildId: payload.group_id.toString(),
|
||||
};
|
||||
}
|
||||
//非好友的C2C 用于识别单向会话
|
||||
return {
|
||||
chatType: ChatType.KCHATTYPEC2C,
|
||||
peerUid: Uid!,
|
||||
guildId: payload.group_id?.toString() || '',
|
||||
guildId: '',
|
||||
};
|
||||
}
|
||||
//好友的C2C
|
||||
return {
|
||||
chatType: ChatType.KCHATTYPEC2C,
|
||||
peerUid: Uid!,
|
||||
|
Loading…
Reference in New Issue
Block a user