Skip to content

Commit 38f6dad

Browse files
committed
Lower NTQQ build check from 41679 to 39038
Update NTQQFriendApi to use a lower minimum NTQQ build threshold (39038) when deciding which buddyListV2 API path to call. The change replaces occurrences of '41679' with '39038' in packages/napcat-core/apis/friend.ts (affecting getBuddyV2SimpleInfoMap and the buddyListV2 retrieval logic) to broaden compatibility with older NTQQ builds.
1 parent c3b29f1 commit 38f6dad

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

packages/napcat-core/apis/friend.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ export class NTQQFriendApi {
1818
async getBuddyV2SimpleInfoMap () {
1919
const buddyService = this.context.session.getBuddyService();
2020
let uids: string[] = [];
21-
if (this.core.context.basicInfoWrapper.requireMinNTQQBuild('41679')) {
21+
if (this.core.context.basicInfoWrapper.requireMinNTQQBuild('39038')) {
2222
const buddyListV2NT = await buddyService.getBuddyListV2('0', true, BuddyListReqType.KNOMAL);
2323
uids = buddyListV2NT.data.flatMap(item => item.buddyUids);
2424
} else {
@@ -55,7 +55,7 @@ export class NTQQFriendApi {
5555
const buddyService = this.context.session.getBuddyService();
5656
let uids: string[] = [];
5757
let buddyListV2: Awaited<ReturnType<typeof buddyService.getBuddyListV2>>['data'];
58-
if (this.core.context.basicInfoWrapper.requireMinNTQQBuild('41679')) {
58+
if (this.core.context.basicInfoWrapper.requireMinNTQQBuild('39038')) {
5959
buddyListV2 = (await buddyService.getBuddyListV2('0', true, BuddyListReqType.KNOMAL)).data;
6060
uids = buddyListV2.flatMap(item => item.buddyUids);
6161
} else {

0 commit comments

Comments
 (0)