@napuketto/loader 0.0.21 → 0.0.22

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.
@@ -358,7 +358,7 @@ function createIpcActions(ctx) {
358
358
  });
359
359
  actions.set("msg.recallMessage", async (params) => {
360
360
  const peer = await toPeer(params, ctx.uinToUid);
361
- const msgIds = Array.isArray(params["msgIds"]) ? params["msgIds"].map(String) : [];
361
+ const msgIds = Array.isArray(params["msgIds"]) ? params["msgIds"].map((id) => typeof id === "string" ? id.trim() : "").filter((id) => id !== "") : [];
362
362
  await ctx.msgApi.recallMessage(peer, msgIds);
363
363
  });
364
364
  actions.set("msg.fetchMessages", async (params) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@napuketto/loader",
3
- "version": "0.0.21",
3
+ "version": "0.0.22",
4
4
  "description": "NapukettoQQ 引导组件:自建宿主(标准 Node + stub QQNT.dll)dlopen wrapper.node 并启动 kernel,不拉起 QQ / 不注入",
5
5
  "type": "module",
6
6
  "files": [