Chg: コマンド実行の際にメンションと通知を時系列にソートするように

This commit is contained in:
2026-05-03 18:49:01 +09:00
parent e17da1686d
commit 7f2ef21557
+5 -2
View File
@@ -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;