feat: only mark notifications read that match current filter

closes #13574
This commit is contained in:
Barış Soner Uşaklı
2025-08-05 17:51:53 -04:00
parent e1423636a5
commit 9d39ed512f
4 changed files with 29 additions and 10 deletions

View File

@@ -34,8 +34,8 @@ SocketNotifs.markUnread = async function (socket, nid) {
user.notifications.pushCount(socket.uid);
};
SocketNotifs.markAllRead = async function (socket) {
await notifications.markAllRead(socket.uid);
SocketNotifs.markAllRead = async function (socket, data) {
await notifications.markAllRead(socket.uid, data.filter);
user.notifications.pushCount(socket.uid);
};