From 3e7ca4f20e8a10641685a3d78eaacdf745518de2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bar=C4=B1=C5=9F=20Soner=20U=C5=9Fakl=C4=B1?= Date: Sun, 16 Jul 2023 22:44:17 -0400 Subject: [PATCH] fix: unread notif filter --- src/api/chats.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);