decord/source/modules/quarantine/useShouldBlockDMInputForQuarantinedUser.tsx

26 lines
923 B
TypeScript
Raw Normal View History

2026-09-01 10:26:29 +00:00
// Module ID: 11998
// Function ID: 11999
2026-07-20 16:05:17 +00:00
// Name: useShouldBlockDMInputForQuarantinedUser
2026-09-01 10:26:29 +00:00
// Dependencies: [4735, 676, 11833, 589, 2]
2026-07-20 16:05:17 +00:00
// Exports: default
2026-09-01 10:26:29 +00:00
// Module 11998 (useShouldBlockDMInputForQuarantinedUser)
import closure_2 from "reinjectEphemerals" /* 4735 */;
2026-08-24 06:08:38 +00:00
import { UserFlags } from "ME" /* 676 */;
2026-07-22 07:54:56 +00:00
2026-07-23 10:11:24 +00:00
const require = arg1;
2026-08-24 06:08:38 +00:00
const result = require("set").fileFinishedImporting("modules/quarantine/useShouldBlockDMInputForQuarantinedUser.tsx");
2026-07-20 16:05:17 +00:00
export default function useShouldBlockDMInputForQuarantinedUser(hasFlag, channel) {
2026-07-23 10:11:24 +00:00
const _require = channel;
2026-09-01 10:26:29 +00:00
const showConvoStarterInDM = _require(11833).useShowConvoStarterInDM(channel);
2026-07-29 08:29:29 +00:00
_require(589);
2026-07-20 16:05:17 +00:00
[][0] = channel;
let tmp4 = null != hasFlag;
if (tmp4) {
tmp4 = hasFlag.hasFlag(UserFlags.QUARANTINED) && showConvoStarterInDM && !tmp3;
const tmp6 = hasFlag.hasFlag(UserFlags.QUARANTINED) && showConvoStarterInDM && !tmp3;
}
return tmp4;
};