feat: RecentContact
This commit is contained in:
1 parent
02eb69ce77
commit
76950e8e33
2 files changed
+4
-1
No files matched your search
@@ -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