mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-03-16 01:20:52 +01:00
fix: merged chat notifications if all the messages are from the same user
usernames.length ends up being 1 so need to use default translation string and not -dual/-triple/-multiple variants
This commit is contained in:
@@ -515,7 +515,9 @@ Notifications.merge = async function (notifications) {
|
||||
|
||||
differentiators.forEach((differentiator) => {
|
||||
function typeFromLength(items) {
|
||||
if (items.length === 2) {
|
||||
if (items.length <= 1) {
|
||||
return '';
|
||||
} else if (items.length === 2) {
|
||||
return 'dual';
|
||||
} else if (items.length === 3) {
|
||||
return 'triple';
|
||||
|
||||
Reference in New Issue
Block a user