2026-09-19 06:52:51 +00:00
|
|
|
// Module ID: 17433
|
|
|
|
|
// Function ID: 17434
|
2026-07-20 16:05:17 +00:00
|
|
|
// Name: isGuildSelectable
|
2026-09-19 06:52:51 +00:00
|
|
|
// Dependencies: [2046, 4778, 7870, 4937, 2]
|
2026-07-20 16:05:17 +00:00
|
|
|
// Exports: default
|
|
|
|
|
|
2026-09-19 06:52:51 +00:00
|
|
|
// 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
|
|
|
|
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
|
|
|
};
|