fix: replace deprecated calls

This commit is contained in:
Wesley F. Young committed 2024-08-12 08:20:11 +08:00
1 parent 257135763f
commit a88c37ea56
18 files changed
+54 -54

No files matched your search

+1 -1
View File
@@ -20,7 +20,7 @@ async function handleMsg(coreContext: NapCatCore, msg: OB11Message, quickAction:
const reply = quickAction.reply;
const peer: Peer = {
chatType: ChatType.friend,
peerUid: await coreContext.apis.UserApi.getUidByUin(msg.user_id.toString()) as string,
peerUid: await coreContext.apis.UserApi.getUidByUinV2(msg.user_id.toString()) as string,
};
if (msg.message_type == 'private') {
if (msg.sub_type === 'group') {