Correctly add quits to parts

This commit is contained in:
Pavel Djundik 2018-04-26 13:16:57 +03:00 committed by Pavel Djundik
parent 4f85779e78
commit 02db91bcc9

View File

@ -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]) {