Chg: コマンド実行の際にメンションと通知を時系列にソートするように
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user