fix: unread notif filter

This commit is contained in:
Barış Soner Uşaklı
2023-07-16 22:44:17 -04:00
parent 6b017eb19c
commit 3e7ca4f20e

View File

@@ -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);