mirror of
https://github.com/thelounge/thelounge
synced 2024-11-23 12:33:07 +00:00
15 lines
303 B
JavaScript
15 lines
303 B
JavaScript
"use strict";
|
|
|
|
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;
|
|
};
|