2026-09-05 10:56:28 +00:00
|
|
|
// Module ID: 12434
|
|
|
|
|
// Function ID: 12435
|
2026-07-20 16:05:17 +00:00
|
|
|
// Name: useShouldBlockDMInputForQuarantinedUser
|
2026-09-05 10:56:28 +00:00
|
|
|
// Dependencies: [4781, 1074, 12266, 504, 2]
|
2026-07-20 16:05:17 +00:00
|
|
|
// Exports: default
|
|
|
|
|
|
2026-09-05 10:56:28 +00:00
|
|
|
// Module 12434 (useShouldBlockDMInputForQuarantinedUser)
|
|
|
|
|
import closure_2 from "reinjectEphemerals" /* 4781 */;
|
|
|
|
|
import { UserFlags } from "ME" /* 1074 */;
|
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-05 10:56:28 +00:00
|
|
|
const showConvoStarterInDM = _require(12266).useShowConvoStarterInDM(channel);
|
|
|
|
|
_require(504);
|
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;
|
|
|
|
|
};
|