mirror of
https://github.com/thelounge/thelounge
synced 2024-11-23 04:23:13 +00:00
dd05ee3a65
Co-authored-by: Eric Nemchik <eric@nemchik.com> Co-authored-by: Pavel Djundik <xPaw@users.noreply.github.com>
13 lines
290 B
TypeScript
13 lines
290 B
TypeScript
import {store} from "../store";
|
|
|
|
export default (network, channel) => {
|
|
if (!network.isCollapsed || channel.highlight || channel.type === "lobby") {
|
|
return false;
|
|
}
|
|
|
|
if (store.state.activeChannel && channel === store.state.activeChannel.channel) {
|
|
return false;
|
|
}
|
|
|
|
return true;
|
|
};
|