feat: RecentContact

This commit is contained in:
手瓜一十雪
2024-07-22 09:24:16 +08:00
parent e1b8243a67
commit 3177110f0f
2 changed files with 4 additions and 1 deletions

View File

@@ -255,6 +255,9 @@ export class NTQQUserApi {
// } // }
return uin; return uin;
} }
static async getRecentContactListSnapShot(count: number) {
return await napCatCore.session.getRecentContactService().getRecentContactListSnapShot(count);
}
static async getRecentContactListSyncLimit(count: number) { static async getRecentContactListSyncLimit(count: number) {
return await napCatCore.session.getRecentContactService().getRecentContactListSyncLimit(count); return await napCatCore.session.getRecentContactService().getRecentContactListSyncLimit(count);
} }

View File

@@ -7,6 +7,6 @@ export default class GetRecentContact extends BaseAction<void, any> {
actionName = ActionName.GetRecentContact; actionName = ActionName.GetRecentContact;
protected async _handle(payload: void) { protected async _handle(payload: void) {
//没有效果 //没有效果
return await NTQQUserApi.getRecentContactListSync(); return await NTQQUserApi.getRecentContactListSnapShot(10);
} }
} }