From 6d22e33a1f2f37beb2317c4da594809a0a2209f4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bar=C4=B1=C5=9F=20Soner=20U=C5=9Fakl=C4=B1?= Date: Wed, 11 Mar 2026 12:39:45 -0400 Subject: [PATCH] fix: also use tx.compile in chat notif merge --- src/notifications.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/notifications.js b/src/notifications.js index 63d5ab6d7f..5f0c305673 100644 --- a/src/notifications.js +++ b/src/notifications.js @@ -539,8 +539,8 @@ Notifications.merge = async function (notifications) { const { roomId, roomName, type, user } = set[0]; const isGroupChat = type === 'new-group-chat'; notifObj.bodyShort = isGroupChat || (roomName !== `[[modules:chat.room-id, ${roomId}]]`) ? - `[[notifications:new-messages-in, ${set.length}, ${roomName}]]` : - `[[notifications:new-messages-from, ${set.length}, ${user.displayname}]]`; + translator.compile('notifications:new-messages-in', set.length, roomName) : + translator.compile('notifications:new-messages-from', set.length, user.displayname); break; }