decord/source/modules/channel/ChannelVisibilityUtils.tsx
2026-08-08 06:10:11 +00:00

21 lines
771 B
TypeScript

// Module ID: 9759
// Function ID: 9760
// Name: isChannelCurrentlyVisible
// Dependencies: [5898, 1960, 4124, 2]
// Exports: isChannelCurrentlyVisible
// Module 9759 (isChannelCurrentlyVisible)
import handlePermissionsChange from "handlePermissionsChange";
import handleConnectionOpen from "handleConnectionOpen";
import closure_2 from "handleConnectionOpen";
const result = require("handleConnectionOpen").fileFinishedImporting("modules/channel/ChannelVisibilityUtils.tsx");
export const isChannelCurrentlyVisible = function isChannelCurrentlyVisible(id) {
channelId = channelId.getChannelId(guildId.getGuildId());
let tmp2 = channelId === id;
if (!tmp2) {
tmp2 = currentSidebarChannelId.getCurrentSidebarChannelId(channelId) === id;
}
return tmp2;
};