decord/source/modules/home_drawer/native/isHomeDrawerChannelMuted.tsx
github-actions da5b5e5efe chore: update source for alpha 346.6
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4821.js (118.4 MB)
2026-09-12 13:45:10 +00:00

33 lines
1.1 KiB
TypeScript

// Module ID: 16413
// Function ID: 16414
// Name: isHomeDrawerChannelMuted
// Dependencies: [4277, 1961, 4817, 504, 2]
// Exports: useIsHomeDrawerChannelMuted
// Module 16413 (isHomeDrawerChannelMuted)
import initialize from "initialize" /* 504 */;
import JoinedThreadsStore from "JoinedThreadsStore" /* 4277 */;
import UserGuildSettingsStore from "UserGuildSettingsStore" /* 4817 */;
require = fn;
const isThread = fn(1961).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);
};