From 02db91bcc98878f75806d4df101f709a65d5d2d2 Mon Sep 17 00:00:00 2001 From: Pavel Djundik Date: Thu, 26 Apr 2018 13:16:57 +0300 Subject: [PATCH] Correctly add quits to parts --- client/js/condensed.js | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/client/js/condensed.js b/client/js/condensed.js index 844dc4cb..a7de2402 100644 --- a/client/js/condensed.js +++ b/client/js/condensed.js @@ -22,15 +22,13 @@ function updateText(condensed, addedTypes) { const obj = getStoredTypes(condensed); Object.keys(addedTypes).map((type) => { - // Count quits as parts in condensed messages to reduce information density - if (type === "quit") { - type = "part"; - } - obj[type] += addedTypes[type]; condensed.data(type, obj[type]); }); + // Count quits as parts in condensed messages to reduce information density + obj.part += obj.quit; + const strings = []; constants.condensedTypes.forEach((type) => { if (obj[type]) {