@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.
- package/dist/host/self-host.cjs +1 -1
- package/package.json +1 -1
package/dist/host/self-host.cjs
CHANGED
|
@@ -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(
|
|
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) => {
|