decord/source/modules/home_drawer/native/isHomeDrawerChannelMuted.tsx
github-actions a36fe4ec9c chore: update source for alpha 347.0
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4821.js (118.4 MB)
2026-09-14 20:04:03 +00:00

33 lines
1.1 KiB
TypeScript

// Module ID: 16415
// Function ID: 16416
// Name: isHomeDrawerChannelMuted
// Dependencies: [4277, 1961, 4817, 504, 2]
// Exports: useIsHomeDrawerChannelMuted
// Module 16415 (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);
};