mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-26 08:36:12 +01:00
fix: unread notif filter
This commit is contained in:
@@ -152,7 +152,7 @@ chatsAPI.mark = async (caller, data) => {
|
||||
match: `chat_*`,
|
||||
});
|
||||
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);
|
||||
|
||||
Reference in New Issue
Block a user