mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-05-07 15:17:02 +02:00
feat: only mark notifications read that match current filter
closes #13574
This commit is contained in:
@@ -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);
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user