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