decord/source/modules/ato_alerts/hooks/useLikelyAtoWarning.tsx
github-actions 67d978d9fb chore: update source for alpha 346.0
Skipped 1 file(s) >100MB (GitHub limit): source/__vendor/09xxx/9672_m.js (378.6 MB)
2026-09-07 16:44:02 +00:00

36 lines
1.7 KiB
TypeScript

// Module ID: 11372
// Function ID: 11373
// Name: useLikelyAtoWarning
// Dependencies: [10920, 11370, 11371, 10978, 10977, 11369, 2]
// Exports: useLikelyAtoWarning
// Module 11372 (useLikelyAtoWarning)
import set from "set" /* 2 */;
import handleConnectionOpen from "handleConnectionOpen" /* 10920 */;
import useInappropriateConversationWarningsForChannel from "useInappropriateConversationWarningsForChannel" /* 10977 */;
import useChannelSafetyWarning from "useChannelSafetyWarning" /* 10978 */;
import useIsSpamMessageRequest from "useIsSpamMessageRequest" /* 11370 */;
import useIsMessageRequest from "useIsMessageRequest" /* 11371 */;
const SafetyWarningTypes = handleConnectionOpen.SafetyWarningTypes;
const result = set.fileFinishedImporting("modules/ato_alerts/hooks/useLikelyAtoWarning.tsx");
export const useLikelyAtoWarning = function useLikelyAtoWarning(channelId) {
const isSpamMessageRequest = useIsSpamMessageRequest.useIsSpamMessageRequest(channelId);
const obj = useIsSpamMessageRequest;
const isMessageRequest = useIsMessageRequest.useIsMessageRequest(channelId);
const obj2 = useIsMessageRequest;
const channelSafetyWarning = useChannelSafetyWarning.useChannelSafetyWarning(channelId, SafetyWarningTypes.LIKELY_ATO);
const obj3 = useChannelSafetyWarning;
const obj4 = useInappropriateConversationWarningsForChannel;
const tmp4 = useInappropriateConversationWarningsForChannel.useInappropriateConversationWarningsForChannel(channelId).length > 0;
if (!isSpamMessageRequest) {
if (!isMessageRequest) {
if (!tmp4) {
if (null == obj5.useStrangerDangerWarning(channelId)) {
return channelSafetyWarning;
}
}
}
}
};