decord/alpha/source/modules/channel/ChannelVisibilityUtils.tsx

20 lines
808 B
TypeScript
Raw Normal View History

2026-10-08 09:57:35 +00:00
// Module ID: 12583
// Function ID: 12584
// Name: ChannelVisibilityUtils
2026-10-08 09:57:35 +00:00
// Dependencies: [6066, 2115, 4899, 2]
2026-07-20 16:05:17 +00:00
// Exports: isChannelCurrentlyVisible
2026-10-08 09:57:35 +00:00
// Module 12583 (ChannelVisibilityUtils)
import ChannelSectionStore from "ChannelSectionStore" /* 6066 */;
import SelectedChannelStore from "SelectedChannelStore" /* 2115 */;
import SelectedGuildStore from "SelectedGuildStore" /* 4899 */;
2026-10-03 08:58:59 +00:00
import size from "module_2" /* 2 */;
2026-07-23 10:11:24 +00:00
const result = size.fileFinishedImporting("modules/channel/ChannelVisibilityUtils.tsx");
2026-07-20 16:05:17 +00:00
export const isChannelCurrentlyVisible = function isChannelCurrentlyVisible(id) {
const channelId = SelectedChannelStore.getChannelId(SelectedGuildStore.getGuildId());
2026-10-03 08:58:59 +00:00
const tmp2 = channelId === id || ChannelSectionStore.getCurrentSidebarChannelId(channelId) === id;
2026-07-20 16:05:17 +00:00
return tmp2;
};