2026-08-24 06:08:38 +00:00
|
|
|
// Module ID: 11651
|
|
|
|
|
// Function ID: 11652
|
2026-07-20 16:05:17 +00:00
|
|
|
// Name: useShouldBlockDMInputForQuarantinedUser
|
2026-08-24 06:08:38 +00:00
|
|
|
// Dependencies: [4999, 676, 11482, 589, 2]
|
2026-07-20 16:05:17 +00:00
|
|
|
// Exports: default
|
|
|
|
|
|
2026-08-24 06:08:38 +00:00
|
|
|
// Module 11651 (useShouldBlockDMInputForQuarantinedUser)
|
|
|
|
|
import closure_2 from "reinjectEphemerals" /* 4999 */;
|
|
|
|
|
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-08-24 06:08:38 +00:00
|
|
|
const showConvoStarterInDM = _require(11482).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;
|
|
|
|
|
};
|