25 lines
941 B
TypeScript
25 lines
941 B
TypeScript
// Module ID: 11713
|
|
// Function ID: 11714
|
|
// Name: useShouldBlockDMInputForQuarantinedUser
|
|
// Dependencies: [4502, 676, 11555, 589, 2]
|
|
// Exports: default
|
|
|
|
// Module 11713 (useShouldBlockDMInputForQuarantinedUser)
|
|
import reinjectEphemerals from "reinjectEphemerals";
|
|
import { UserFlags } from "ME";
|
|
|
|
const require = arg1;
|
|
const result = require("MAX_MESSAGES_ALLOWED_FOR_GREETING").fileFinishedImporting("modules/quarantine/useShouldBlockDMInputForQuarantinedUser.tsx");
|
|
|
|
export default function useShouldBlockDMInputForQuarantinedUser(hasFlag, channel) {
|
|
const _require = channel;
|
|
const showConvoStarterInDM = _require(11555).useShowConvoStarterInDM(channel);
|
|
_require(589);
|
|
[][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;
|
|
};
|