decord/source/modules/quarantine/useShouldBlockDMInputForQuarantinedUser.tsx

26 lines
955 B
TypeScript
Raw Normal View History

2026-07-28 08:39:19 +00:00
// Module ID: 11497
// Function ID: 89343
2026-07-20 16:05:17 +00:00
// Name: useShouldBlockDMInputForQuarantinedUser
2026-07-28 08:39:19 +00:00
// Dependencies: [4384, 653, 11402, 566, 2]
2026-07-20 16:05:17 +00:00
// Exports: default
2026-07-28 08:39:19 +00:00
// Module 11497 (useShouldBlockDMInputForQuarantinedUser)
2026-07-23 10:11:24 +00:00
import _isNativeReflectConstruct from "_isNativeReflectConstruct";
import { UserFlags } from "ME";
2026-07-22 07:54:56 +00:00
2026-07-23 10:11:24 +00:00
const require = arg1;
const result = require("MAX_MESSAGES_ALLOWED_FOR_GREETING").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-07-28 08:39:19 +00:00
const showConvoStarterInDM = _require(11402).useShowConvoStarterInDM(channel);
2026-07-23 10:11:24 +00:00
_require(566);
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;
};