30 lines
1 KiB
TypeScript
30 lines
1 KiB
TypeScript
// Module ID: 11927
|
|
// Function ID: 11928
|
|
// Name: useShouldBlockDMInputForQuarantinedUser
|
|
// Dependencies: [5056, 1074, 11748, 504, 2]
|
|
// Exports: default
|
|
|
|
// Module 11927 (useShouldBlockDMInputForQuarantinedUser)
|
|
import Constants from "Constants" /* 1074 */;
|
|
import MessageStore from "MessageStore" /* 5056 */;
|
|
import size from "module_2" /* 2 */;
|
|
|
|
const require = globalThis.__r;
|
|
let _require;
|
|
|
|
const UserFlags = Constants.UserFlags;
|
|
const result = size.fileFinishedImporting("modules/quarantine/useShouldBlockDMInputForQuarantinedUser.tsx");
|
|
|
|
export default function useShouldBlockDMInputForQuarantinedUser(hasFlag, channel) {
|
|
_require = channel;
|
|
const obj = require("useShowConvoStarterInDM");
|
|
const showConvoStarterInDM = obj.useShowConvoStarterInDM(channel);
|
|
require("get initialized");
|
|
[][0] = channel;
|
|
let tmp4 = null != hasFlag;
|
|
if (tmp4) {
|
|
tmp4 = hasFlag.hasFlag(UserFlags.QUARANTINED) && showConvoStarterInDM && !tmp3;
|
|
hasFlag.hasFlag(UserFlags.QUARANTINED) && showConvoStarterInDM && !tmp3;
|
|
}
|
|
return tmp4;
|
|
};
|