Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4943.js (118.4 MB)
34 lines
1.2 KiB
TypeScript
34 lines
1.2 KiB
TypeScript
// Module ID: 17679
|
|
// Function ID: 17680
|
|
// Name: isGuildSelectable
|
|
// Dependencies: [2050, 4780, 7877, 4939, 2]
|
|
// Exports: default
|
|
|
|
// Module 17679 (isGuildSelectable)
|
|
import StageInstanceStore from "StageInstanceStore" /* 2050 */;
|
|
import ApplicationStreamingStore from "ApplicationStreamingStore" /* 4780 */;
|
|
import GuildReadStateStore from "GuildReadStateStore" /* 7877 */;
|
|
import UserGuildSettingsStore from "UserGuildSettingsStore" /* 4939 */;
|
|
|
|
const size = fn(2);
|
|
const result = size.fileFinishedImporting("modules/launchpad/native/isGuildSelectable.tsx");
|
|
|
|
export default function isGuildSelectable(id) {
|
|
closure_0 = id;
|
|
const isMutedResult = UserGuildSettingsStore.isMuted(id);
|
|
let tmp2 = !isMutedResult;
|
|
if (!isMutedResult) {
|
|
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;
|
|
};
|