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

35 lines
1.3 KiB
TypeScript
Raw Normal View History

2026-10-09 10:00:15 +00:00
// Module ID: 17859
// Function ID: 17860
2026-07-20 16:05:17 +00:00
// Name: isGuildSelectable
2026-10-09 10:00:15 +00:00
// Dependencies: [2069, 5894, 6084, 5973, 2]
2026-07-20 16:05:17 +00:00
// Exports: default
2026-10-09 10:00:15 +00:00
// Module 17859 (isGuildSelectable)
import StageInstanceStore from "StageInstanceStore" /* 2069 */;
import ApplicationStreamingStore from "ApplicationStreamingStore" /* 5894 */;
import GuildReadStateStore from "GuildReadStateStore" /* 6084 */;
import UserGuildSettingsStore from "UserGuildSettingsStore" /* 5973 */;
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/launchpad/native/isGuildSelectable.tsx");
2026-07-20 16:05:17 +00:00
export default function isGuildSelectable(id) {
2026-10-03 08:58:59 +00:00
let closure_0 = id;
let tmp2 = !UserGuildSettingsStore.isMuted(id);
UserGuildSettingsStore.isMuted(id);
if (tmp2) {
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
};