decord/alpha/source/modules/launchpad/native/isGuildSelectable.tsx

35 lines
1.2 KiB
TypeScript
Raw Normal View History

// Module ID: 17433
// Function ID: 17434
2026-07-20 16:05:17 +00:00
// Name: isGuildSelectable
// Dependencies: [2046, 4778, 7870, 4937, 2]
2026-07-20 16:05:17 +00:00
// Exports: default
// Module 17433 (isGuildSelectable)
import StageInstanceStore from "StageInstanceStore" /* 2046 */;
import ApplicationStreamingStore from "ApplicationStreamingStore" /* 4778 */;
import GuildReadStateStore from "GuildReadStateStore" /* 7870 */;
import UserGuildSettingsStore from "UserGuildSettingsStore" /* 4937 */;
2026-07-23 10:11:24 +00:00
const size = fn(2);
const result = size.fileFinishedImporting("modules/launchpad/native/isGuildSelectable.tsx");
2026-07-20 16:05:17 +00:00
export default function isGuildSelectable(id) {
closure_0 = id;
const isMutedResult = UserGuildSettingsStore.isMuted(id);
2026-07-29 08:29:29 +00:00
let tmp2 = !isMutedResult;
if (!isMutedResult) {
let hasUnreadResult = GuildReadStateStore.hasUnread(id);
2026-07-29 08:29:29 +00:00
if (!hasUnreadResult) {
2026-07-20 16:05:17 +00:00
const _Object = Object;
let someResult = Object.keys(StageInstanceStore.getStageInstancesByGuild(id)).length > 0;
2026-07-20 16:05:17 +00:00
if (!someResult) {
const allApplicationStreams = ApplicationStreamingStore.getAllApplicationStreams();
2026-08-24 06:08:38 +00:00
someResult = allApplicationStreams.some((guildId) => guildId.guildId === closure_0);
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
hasUnreadResult = someResult;
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
tmp2 = hasUnreadResult;
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
return tmp2;
2026-07-20 16:05:17 +00:00
};