From 165500e71d063c968cda4e4736d9e30404987ff5 Mon Sep 17 00:00:00 2001 From: Last2014 Date: Sun, 3 May 2026 19:18:58 +0900 Subject: [PATCH] =?UTF-8?q?2026.4.3=20/=20Chg:=20=E3=82=B3=E3=83=9E?= =?UTF-8?q?=E3=83=B3=E3=83=89=E5=AE=9F=E8=A1=8C=E3=81=AE=E9=9A=9B=E3=81=AB?= =?UTF-8?q?=E3=83=A1=E3=83=B3=E3=82=B7=E3=83=A7=E3=83=B3=E3=81=A8=E9=80=9A?= =?UTF-8?q?=E7=9F=A5=E3=82=92=E6=99=82=E7=B3=BB=E5=88=97=E3=81=AB=E3=82=BD?= =?UTF-8?q?=E3=83=BC=E3=83=88=E3=81=97=E3=81=AA=E3=81=84=E3=82=88=E3=81=86?= =?UTF-8?q?=E3=81=AB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CHANGELOG.md | 4 ++++ package.json | 2 +- src/feature/command/index.ts | 7 ++----- 3 files changed, 7 insertions(+), 6 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 02f803d..fdff6af 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +# 2026.4.3 +- Chg: forループ内でlastReadを記録するように +- Chg: lastReadを時刻ベースに + # 2026.4.2 - Fix: id除外が機能しない問題 diff --git a/package.json b/package.json index 3b8a044..ba3934d 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "notice-uwuzu", - "version": "2026.4.2", + "version": "2026.4.3", "type": "module", "main": "dist/index.js", "scripts": { diff --git a/src/feature/command/index.ts b/src/feature/command/index.ts index 6adefa5..eb7705c 100644 --- a/src/feature/command/index.ts +++ b/src/feature/command/index.ts @@ -23,9 +23,7 @@ try { }); if (response.success) { - const notifications = response.data - .filter(notification => notification.category === "reply" && typeof notification.valueid === "string") - .sort((a, b) => new Date(b.datetime).getTime() - new Date(a.datetime).getTime()); + const notifications = response.data.filter(notification => notification.category === "reply" && typeof notification.valueid === "string"); const mem = Memory.memory; const lastReadReply = mem.lastReadReply; @@ -68,8 +66,7 @@ try { }); if (response.success) { - const mentions = response.data - .sort((a, b) => new Date(b.datetime).getTime() - new Date(a.datetime).getTime()); + const mentions = response.data; const mem = Memory.memory; const lastReadMention = mem.lastReadMention;