forked from CringeStudios/gamja
De-duplicate nicks in folded JOIN/PART/QUIT lines
This commit is contained in:
parent
800f5ceb6a
commit
96dd8476ad
@ -297,7 +297,9 @@ class FoldGroup extends Component {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
let plural = byCommand[cmd].length > 1;
|
let nicks = new Set(byCommand[cmd].map((msg) => msg.prefix.name));
|
||||||
|
|
||||||
|
let plural = nicks.size > 1;
|
||||||
let action;
|
let action;
|
||||||
switch (cmd) {
|
switch (cmd) {
|
||||||
case "JOIN":
|
case "JOIN":
|
||||||
@ -317,9 +319,7 @@ class FoldGroup extends Component {
|
|||||||
content.push(", ");
|
content.push(", ");
|
||||||
}
|
}
|
||||||
|
|
||||||
let nicks = byCommand[cmd].map((msg) => msg.prefix.name);
|
content.push(createNickList([...nicks], createNick));
|
||||||
|
|
||||||
content.push(createNickList(nicks, createNick));
|
|
||||||
content.push(" " + action);
|
content.push(" " + action);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user