decord/source/modules/home_drawer/native/isHomeDrawerChannelMuted.tsx
github-actions f0f877e8ce chore: update source for alpha 347.1
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4824.js (118.4 MB)
2026-09-15 14:23:42 +00:00

33 lines
1.1 KiB
TypeScript

// Module ID: 16428
// Function ID: 16429
// Name: isHomeDrawerChannelMuted
// Dependencies: [4280, 1962, 4820, 504, 2]
// Exports: useIsHomeDrawerChannelMuted
// Module 16428 (isHomeDrawerChannelMuted)
import initialize from "initialize" /* 504 */;
import JoinedThreadsStore from "JoinedThreadsStore" /* 4280 */;
import UserGuildSettingsStore from "UserGuildSettingsStore" /* 4820 */;
require = fn;
const isThread = fn(1962).isThread;
const size = fn(2);
let result = size.fileFinishedImporting("modules/home_drawer/native/isHomeDrawerChannelMuted.tsx");
export const useIsHomeDrawerChannelMuted = function useIsHomeDrawerChannelMuted() {
const items = [JoinedThreadsStore, UserGuildSettingsStore];
return initialize.useStateFromStores(items, () => (type) => {
const tmp = closure_1_3(type.type);
if (tmp) {
if (muted.isMuted(type.id)) {
return true;
}
}
const tmp3 = tmp ? type.parent_id : type.id;
let result = null != tmp3;
if (result) {
result = guildOrCategoryOrChannelMuted.isGuildOrCategoryOrChannelMuted(type.guild_id, tmp3);
}
return result;
}, [], initialize.statesWillNeverBeEqual);
};