2026-09-18 06:58:00 +00:00
|
|
|
// Module ID: 17356
|
|
|
|
|
// Function ID: 17357
|
2026-07-20 16:05:17 +00:00
|
|
|
// Name: isGuildSelectable
|
2026-09-18 06:58:00 +00:00
|
|
|
// Dependencies: [1963, 4744, 7832, 4903, 2]
|
2026-07-20 16:05:17 +00:00
|
|
|
// Exports: default
|
|
|
|
|
|
2026-09-18 06:58:00 +00:00
|
|
|
// Module 17356 (isGuildSelectable)
|
2026-09-15 14:23:42 +00:00
|
|
|
import StageInstanceStore from "StageInstanceStore" /* 1963 */;
|
2026-09-18 06:58:00 +00:00
|
|
|
import ApplicationStreamingStore from "ApplicationStreamingStore" /* 4744 */;
|
|
|
|
|
import GuildReadStateStore from "GuildReadStateStore" /* 7832 */;
|
|
|
|
|
import UserGuildSettingsStore from "UserGuildSettingsStore" /* 4903 */;
|
2026-07-23 10:11:24 +00:00
|
|
|
|
2026-09-10 05:38:07 +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) {
|
2026-09-10 05:38:07 +00:00
|
|
|
closure_0 = id;
|
|
|
|
|
const isMutedResult = UserGuildSettingsStore.isMuted(id);
|
2026-07-29 08:29:29 +00:00
|
|
|
let tmp2 = !isMutedResult;
|
|
|
|
|
if (!isMutedResult) {
|
2026-09-10 05:38:07 +00:00
|
|
|
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;
|
2026-09-10 05:38:07 +00:00
|
|
|
let someResult = Object.keys(StageInstanceStore.getStageInstancesByGuild(id)).length > 0;
|
2026-07-20 16:05:17 +00:00
|
|
|
if (!someResult) {
|
2026-09-10 05:38:07 +00:00
|
|
|
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
|
|
|
};
|