2026-10-12 16:32:48 +00:00
|
|
|
// Module ID: 17988
|
|
|
|
|
// Function ID: 17989
|
2026-09-18 19:45:33 +00:00
|
|
|
// Name: isGuildSelectable
|
2026-10-12 16:32:48 +00:00
|
|
|
// Dependencies: [2070, 5897, 6078, 5966, 2]
|
2026-09-18 19:45:33 +00:00
|
|
|
// Exports: default
|
|
|
|
|
|
2026-10-12 16:32:48 +00:00
|
|
|
// Module 17988 (isGuildSelectable)
|
|
|
|
|
import StageInstanceStore from "StageInstanceStore" /* 2070 */;
|
|
|
|
|
import ApplicationStreamingStore from "ApplicationStreamingStore" /* 5897 */;
|
|
|
|
|
import GuildReadStateStore from "GuildReadStateStore" /* 6078 */;
|
|
|
|
|
import UserGuildSettingsStore from "UserGuildSettingsStore" /* 5966 */;
|
2026-10-01 14:13:23 +00:00
|
|
|
import size from "module_2" /* 2 */;
|
2026-09-18 19:45:33 +00:00
|
|
|
|
|
|
|
|
const result = size.fileFinishedImporting("modules/launchpad/native/isGuildSelectable.tsx");
|
|
|
|
|
|
|
|
|
|
export default function isGuildSelectable(id) {
|
2026-10-01 14:13:23 +00:00
|
|
|
let closure_0 = id;
|
|
|
|
|
let tmp2 = !UserGuildSettingsStore.isMuted(id);
|
|
|
|
|
UserGuildSettingsStore.isMuted(id);
|
|
|
|
|
if (tmp2) {
|
2026-09-18 19:45:33 +00:00
|
|
|
let hasUnreadResult = GuildReadStateStore.hasUnread(id);
|
|
|
|
|
if (!hasUnreadResult) {
|
|
|
|
|
const _Object = Object;
|
|
|
|
|
let someResult = Object.keys(StageInstanceStore.getStageInstancesByGuild(id)).length > 0;
|
|
|
|
|
if (!someResult) {
|
|
|
|
|
const allApplicationStreams = ApplicationStreamingStore.getAllApplicationStreams();
|
|
|
|
|
someResult = allApplicationStreams.some((guildId) => guildId.guildId === closure_0);
|
|
|
|
|
}
|
|
|
|
|
hasUnreadResult = someResult;
|
|
|
|
|
}
|
|
|
|
|
tmp2 = hasUnreadResult;
|
|
|
|
|
}
|
|
|
|
|
return tmp2;
|
|
|
|
|
};
|