@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.
- package/dist/host/self-host.cjs +3 -3
- package/package.json +1 -1
package/dist/host/self-host.cjs
CHANGED
|
@@ -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 (
|
|
227
|
-
|
|
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 } : {}
|