fix: notifs

This commit is contained in:
Barış Soner Uşaklı
2026-03-11 12:58:14 -04:00
parent 6d22e33a1f
commit ed3a367274

View File

@@ -550,7 +550,7 @@ Notifications.merge = async function (notifications) {
const isMultiple = type === 'multiple'; const isMultiple = type === 'multiple';
const txArgs = [ const txArgs = [
`${mergeId}-${type}`, `${mergeId}-${type}`,
usernames.slice(0, usernames.length <= 3 ? 3 : 2).join(', '), ...usernames.slice(0, usernames.length <= 3 ? 3 : 2),
...(isMultiple ? [usernames.length - 2] : []), ...(isMultiple ? [usernames.length - 2] : []),
notifObj.roomIcon, notifObj.roomIcon,
notifObj.roomName, notifObj.roomName,
@@ -571,7 +571,7 @@ Notifications.merge = async function (notifications) {
const isMultiple = type === 'multiple'; const isMultiple = type === 'multiple';
const txArgs = [ const txArgs = [
`${mergeId}-${type}`, `${mergeId}-${type}`,
usernames.slice(0, usernames.length <= 3 ? 3 : 2).join(', '), ...usernames.slice(0, usernames.length <= 3 ? 3 : 2),
...(isMultiple ? [usernames.length - 2] : []), ...(isMultiple ? [usernames.length - 2] : []),
utils.decodeHTMLEntities(notifObj.topicTitle || ''), utils.decodeHTMLEntities(notifObj.topicTitle || ''),
]; ];