mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-26 16:46:12 +01:00
fix: unread notif filter
This commit is contained in:
@@ -152,7 +152,7 @@ chatsAPI.mark = async (caller, data) => {
|
|||||||
match: `chat_*`,
|
match: `chat_*`,
|
||||||
});
|
});
|
||||||
chatNids = chatNids.filter(
|
chatNids = chatNids.filter(
|
||||||
nid => nid && !nid.startsWith(`chat_${caller.uid}`) && nid.endsWith(`_${roomId}`)
|
nid => nid && !nid.startsWith(`chat_${caller.uid}_`) && nid.endsWith(`_${roomId}`)
|
||||||
);
|
);
|
||||||
|
|
||||||
await notifications.markReadMultiple(chatNids, caller.uid);
|
await notifications.markReadMultiple(chatNids, caller.uid);
|
||||||
|
|||||||
Reference in New Issue
Block a user