2026.4.1 / Chg: notificationsもfor内でlastReadを更新しないように

This commit is contained in:
2026-05-03 16:09:04 +09:00
parent fbef68ce79
commit 90e9d614f9
2 changed files with 4 additions and 8 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "notice-uwuzu",
"version": "2026.4.0",
"version": "2026.4.1",
"type": "module",
"main": "dist/index.js",
"scripts": {
+3 -7
View File
@@ -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 {