feat: RecentContact

This commit is contained in:
手瓜一十雪 committed 2024-07-22 09:24:16 +08:00
1 parent 02eb69ce77
commit 76950e8e33
2 files changed
+4 -1

No files matched your search

+3
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);
} }
+1 -1
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);
} }
} }