diff --git a/package.json b/package.json index b46e989..93a9372 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "notice-uwuzu", - "version": "2026.4.0", + "version": "2026.4.1", "type": "module", "main": "dist/index.js", "scripts": { diff --git a/src/feature/command/index.ts b/src/feature/command/index.ts index 0f70e07..dd97815 100644 --- a/src/feature/command/index.ts +++ b/src/feature/command/index.ts @@ -27,8 +27,10 @@ try { const mem = Memory.memory; const lastReadReply = mem.lastReadReply; + mem.lastReadReply = notifications[0]?.valueid ?? lastReadReply; + Memory.memory = mem; - for (const [index, notification] of notifications.entries()) { + for (const notification of notifications) { if (notification.category !== "reply" || typeof notification.valueid !== "string") continue; @@ -44,12 +46,6 @@ try { continue; } - if (index === 0) { - const mem = Memory.memory; - mem.lastReadReply = ueuseResponse.data[0].uniqid; - Memory.memory = mem; - } - ueuses.push(ueuseResponse.data[0]); } } else {