mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-05-07 13:26:02 +02:00
fix: also use tx.compile in chat notif merge
This commit is contained in:
@@ -539,8 +539,8 @@ Notifications.merge = async function (notifications) {
|
|||||||
const { roomId, roomName, type, user } = set[0];
|
const { roomId, roomName, type, user } = set[0];
|
||||||
const isGroupChat = type === 'new-group-chat';
|
const isGroupChat = type === 'new-group-chat';
|
||||||
notifObj.bodyShort = isGroupChat || (roomName !== `[[modules:chat.room-id, ${roomId}]]`) ?
|
notifObj.bodyShort = isGroupChat || (roomName !== `[[modules:chat.room-id, ${roomId}]]`) ?
|
||||||
`[[notifications:new-messages-in, ${set.length}, ${roomName}]]` :
|
translator.compile('notifications:new-messages-in', set.length, roomName) :
|
||||||
`[[notifications:new-messages-from, ${set.length}, ${user.displayname}]]`;
|
translator.compile('notifications:new-messages-from', set.length, user.displayname);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user