decord/source/modules/home_drawer/native/isHomeDrawerChannelMuted.tsx
github-actions ecf26fc058 chore: update source for alpha 347.2
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4823.js (118.4 MB)
2026-09-16 07:03:15 +00:00

33 lines
1.1 KiB
TypeScript

// Module ID: 16448
// Function ID: 16449
// Name: isHomeDrawerChannelMuted
// Dependencies: [4278, 1962, 4819, 504, 2]
// Exports: useIsHomeDrawerChannelMuted
// Module 16448 (isHomeDrawerChannelMuted)
import initialize from "initialize" /* 504 */;
import JoinedThreadsStore from "JoinedThreadsStore" /* 4278 */;
import UserGuildSettingsStore from "UserGuildSettingsStore" /* 4819 */;
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);
};