Merge pull request #4669 from thelounge/collapseAway
allow away and back to be collapsed
This commit is contained in:
commit
2803018c5a
@ -118,6 +118,18 @@ export default defineComponent({
|
|||||||
(obj[type] > 1 ? " modes were set" : " mode was set")
|
(obj[type] > 1 ? " modes were set" : " mode was set")
|
||||||
);
|
);
|
||||||
break;
|
break;
|
||||||
|
case "away":
|
||||||
|
strings.push(
|
||||||
|
"marked away " +
|
||||||
|
(obj[type] > 1 ? String(obj[type]) + " times" : "once")
|
||||||
|
);
|
||||||
|
break;
|
||||||
|
case "back":
|
||||||
|
strings.push(
|
||||||
|
"marked back " +
|
||||||
|
(obj[type] > 1 ? String(obj[type]) + " times" : "once")
|
||||||
|
);
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
@ -177,7 +177,7 @@ export default defineComponent({
|
|||||||
});
|
});
|
||||||
|
|
||||||
const condensedMessages = computed(() => {
|
const condensedMessages = computed(() => {
|
||||||
if (props.channel.type !== "channel") {
|
if (props.channel.type !== "channel" && props.channel.type !== "query") {
|
||||||
return props.channel.messages;
|
return props.channel.messages;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -17,7 +17,17 @@ const colorCodeMap = [
|
|||||||
["15", "Light Grey"],
|
["15", "Light Grey"],
|
||||||
];
|
];
|
||||||
|
|
||||||
const condensedTypes = new Set(["chghost", "join", "part", "quit", "nick", "kick", "mode"]);
|
const condensedTypes = new Set([
|
||||||
|
"away",
|
||||||
|
"back",
|
||||||
|
"chghost",
|
||||||
|
"join",
|
||||||
|
"kick",
|
||||||
|
"mode",
|
||||||
|
"nick",
|
||||||
|
"part",
|
||||||
|
"quit",
|
||||||
|
]);
|
||||||
|
|
||||||
const timeFormats = {
|
const timeFormats = {
|
||||||
msgDefault: "HH:mm",
|
msgDefault: "HH:mm",
|
||||||
|
Loading…
Reference in New Issue
Block a user