Merge pull request #2392 from thelounge/xpaw/quit-part

Correctly add quits to parts
This commit is contained in:
Pavel Djundik 2018-04-26 15:10:49 +03:00 committed by GitHub
commit 8d7cd4ea91
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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