@napuketto/loader 0.0.3 → 0.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -223,9 +223,8 @@ function createIpcActions(ctx) {
223
223
  const peer = await toPeer(params, ctx.uinToUid);
224
224
  await ctx.msgApi.markRead(peer);
225
225
  });
226
- actions.set("group.getGroupList", async (params) => {
227
- const force = params["force"] === true;
228
- return ctx.groupApi.getGroupList(force);
226
+ actions.set("group.getGroupList", async () => {
227
+ return ctx.groupCache.listGroupsRefreshed();
229
228
  });
230
229
  actions.set("friend.getFriendList", async () => ctx.friendApi.getFriendList());
231
230
  return actions;
@@ -447,6 +446,7 @@ function startIpcMode(services) {
447
446
  const stopServer = startIpcServer({ actions: createIpcActions({
448
447
  msgApi: services.msgApi,
449
448
  groupApi: services.groupApi,
449
+ groupCache: services.groupCache,
450
450
  friendApi: services.friendApi,
451
451
  self: services.self,
452
452
  ...groupApi.uinToUid !== void 0 ? { uinToUid: groupApi.uinToUid } : {}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@napuketto/loader",
3
- "version": "0.0.3",
3
+ "version": "0.0.4",
4
4
  "description": "NapukettoQQ 引导组件:自建宿主(标准 Node + stub QQNT.dll)dlopen wrapper.node 并启动 kernel,不拉起 QQ / 不注入",
5
5
  "type": "module",
6
6
  "files": [