From 3a2b5fefd90c61ec4cdfd029aae25d93a7411d74 Mon Sep 17 00:00:00 2001 From: barisusakli Date: Wed, 27 Jan 2016 20:14:39 +0200 Subject: [PATCH] :eye_brow: --- src/notifications.js | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/notifications.js b/src/notifications.js index 7b6ea32b5b..191eaf9e09 100644 --- a/src/notifications.js +++ b/src/notifications.js @@ -387,12 +387,9 @@ var async = require('async'), }); var numUsers = usernames.length; - // Update bodyShort - if (numUsers === 1) { - // No need to change anything, actually... - } else if (numUsers === 2) { + if (numUsers === 2) { notifications[modifyIndex].bodyShort = '[[' + mergeId + '_dual, ' + usernames.join(', ') + ', ' + notifications[modifyIndex].topicTitle + ']]' - } else { + } else if (numUsers > 2) { notifications[modifyIndex].bodyShort = '[[' + mergeId + '_multiple, ' + usernames[0] + ', ' + (numUsers-1) + ', ' + notifications[modifyIndex].topicTitle + ']]' } break;