fix: unread notif filter

isekai-main
Barış Soner Uşaklı 2 years ago
parent 6b017eb19c
commit 3e7ca4f20e

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

Loading…
Cancel
Save