fix: also use tx.compile in chat notif merge

This commit is contained in:
Barış Soner Uşaklı
2026-03-11 12:39:45 -04:00
parent e1d0e2a0db
commit 6d22e33a1f

View File

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