Skip to content

Node.js based forum software built for the modern web

fix: unread notif filter

Barış Soner Uşaklı3e7ca4f20e8a
diff --git a/src/api/chats.js b/src/api/chats.js
index 1df828075d..f7dd083355 100644
--- a/src/api/chats.js
+++ b/src/api/chats.js
@@ -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);