From 7f2ef2155703e111380dd2f3207b363ee074e4f7 Mon Sep 17 00:00:00 2001 From: Last2014 Date: Sun, 3 May 2026 18:49:01 +0900 Subject: [PATCH] =?UTF-8?q?Chg:=20=E3=82=B3=E3=83=9E=E3=83=B3=E3=83=89?= =?UTF-8?q?=E5=AE=9F=E8=A1=8C=E3=81=AE=E9=9A=9B=E3=81=AB=E3=83=A1=E3=83=B3?= =?UTF-8?q?=E3=82=B7=E3=83=A7=E3=83=B3=E3=81=A8=E9=80=9A=E7=9F=A5=E3=82=92?= =?UTF-8?q?=E6=99=82=E7=B3=BB=E5=88=97=E3=81=AB=E3=82=BD=E3=83=BC=E3=83=88?= =?UTF-8?q?=E3=81=99=E3=82=8B=E3=82=88=E3=81=86=E3=81=AB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/feature/command/index.ts | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/feature/command/index.ts b/src/feature/command/index.ts index dd97815..f4ef588 100644 --- a/src/feature/command/index.ts +++ b/src/feature/command/index.ts @@ -23,7 +23,9 @@ try { }); if (response.success) { - const notifications = response.data.filter(notification => notification.category === "reply" && typeof notification.valueid === "string"); + 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 mem = Memory.memory; const lastReadReply = mem.lastReadReply; @@ -60,7 +62,8 @@ try { }); if (response.success) { - const mentions = response.data; + const mentions = response.data + .sort((a, b) => new Date(b.datetime).getTime() - new Date(a.datetime).getTime()); const mem = Memory.memory; const lastReadMention = mem.lastReadMention;