feat: RecentContact

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

No files matched your search

+3
View File
@@ -255,6 +255,9 @@ export class NTQQUserApi {
// }
return uin;
}
static async getRecentContactListSnapShot(count: number) {
return await napCatCore.session.getRecentContactService().getRecentContactListSnapShot(count);
}
static async getRecentContactListSyncLimit(count: number) {
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;
protected async _handle(payload: void) {
//没有效果
return await NTQQUserApi.getRecentContactListSync();
return await NTQQUserApi.getRecentContactListSnapShot(10);
}
}