mirror of
https://github.com/NapNeko/NapCatQQ.git
synced 2025-07-19 12:03:37 +00:00
feat: RecentContact
This commit is contained in:
@@ -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);
|
||||||
}
|
}
|
||||||
|
@@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user