decord/source/modules/channel/ChannelVisibilityUtils.tsx

22 lines
765 B
TypeScript
Raw Normal View History

// Module ID: 10016
// Function ID: 10017
2026-07-20 16:05:17 +00:00
// Name: isChannelCurrentlyVisible
// Dependencies: [7220, 1980, 4302, 2]
2026-07-20 16:05:17 +00:00
// Exports: isChannelCurrentlyVisible
// Module 10016 (isChannelCurrentlyVisible)
import closure_0 from "handlePermissionsChange" /* 7220 */;
2026-09-02 09:53:35 +00:00
import closure_1 from "handleConnectionOpen" /* 1980 */;
import closure_2 from "handleConnectionOpen" /* 4302 */;
2026-07-23 10:11:24 +00:00
2026-08-24 06:08:38 +00:00
const result = require("set").fileFinishedImporting("modules/channel/ChannelVisibilityUtils.tsx");
2026-07-20 16:05:17 +00:00
export const isChannelCurrentlyVisible = function isChannelCurrentlyVisible(id) {
2026-07-23 10:11:24 +00:00
channelId = channelId.getChannelId(guildId.getGuildId());
2026-07-20 16:05:17 +00:00
let tmp2 = channelId === id;
if (!tmp2) {
tmp2 = currentSidebarChannelId.getCurrentSidebarChannelId(channelId) === id;
}
return tmp2;
};