Merge pull request #2268 from thelounge/xpaw/self-condensed

Do not condense actions that are performed or related to the user
This commit is contained in:
Pavel Djundik 2018-03-22 11:41:23 +02:00 committed by GitHub
commit c8b5165618
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -59,7 +59,7 @@ function appendMessage(container, chanId, chanType, msg) {
// If current window is not a channel or this message is not condensable,
// then just append the message to container and be done with it
if (constants.condensedTypes.indexOf(msg.type) === -1 || chanType !== "channel") {
if (msg.self || msg.highlight || constants.condensedTypes.indexOf(msg.type) === -1 || chanType !== "channel") {
container.append(renderedMessage);
return;
}