mirror of
https://github.com/thelounge/thelounge.git
synced 2024-06-08 08:42:17 +02:00
21 lines
374 B
JavaScript
21 lines
374 B
JavaScript
"use strict";
|
|
|
|
import store from "../store";
|
|
|
|
export default (network, channel) => {
|
|
if (
|
|
!network.isCollapsed ||
|
|
channel.highlight ||
|
|
channel.type === "lobby" ||
|
|
(channel.favorite === true && store.state.favoritesOpen)
|
|
) {
|
|
return false;
|
|
}
|
|
|
|
if (store.state.activeChannel && channel === store.state.activeChannel.channel) {
|
|
return false;
|
|
}
|
|
|
|
return true;
|
|
};
|