From 90e9d614f9f537dd43ad5cce49d1934936b0adc8 Mon Sep 17 00:00:00 2001 From: Last2014 Date: Sun, 3 May 2026 16:09:04 +0900 Subject: [PATCH] =?UTF-8?q?2026.4.1=20/=20Chg:=20notifications=E3=82=82for?= =?UTF-8?q?=E5=86=85=E3=81=A7lastRead=E3=82=92=E6=9B=B4=E6=96=B0=E3=81=97?= =?UTF-8?q?=E3=81=AA=E3=81=84=E3=82=88=E3=81=86=E3=81=AB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 2 +- src/feature/command/index.ts | 10 +++------- 2 files changed, 4 insertions(+), 8 deletions(-) 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 { -- 2.52.0