40 lines
2.1 KiB
TypeScript
40 lines
2.1 KiB
TypeScript
/* Metro module 5050; source: modules/messages/isSpam.tsx; dependencies: [1878, 661, 5051, 2] */
|
|
function _fun43727(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#43727, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5228:6, offset: 0x0115bdae, size: 172 bytes, params: 8, frame: 19
|
|
const env0_0 = require;
|
|
const closure = isSpammer;
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
const userStore = importDefault(1878) /* metro dependency 1878: UserStore */;
|
|
const constantsModule = require(661) /* metro dependency 661: Constants */;
|
|
const env0_3 = constantsModule.UserFlags;
|
|
const env0_4 = constantsModule.ChannelTypes;
|
|
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/messages/isSpam.tsx');
|
|
exports.isSpamSupported = isSpamSupported;
|
|
exports.isSpammer = closure;
|
|
exports.isSpam = isSpam_43730;
|
|
}
|
|
|
|
function isSpammer(a0) { // fn#43728, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5228:147, offset: 0x0115be5a, size: 65 bytes, params: 2, frame: 13
|
|
const hasFlag = UserStore.getUser(a0)?.hasFlag(UserFlags.SPAMMER);
|
|
return hasFlag != null && hasFlag;
|
|
}
|
|
|
|
function isSpamSupported(a0) { // fn#43729, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5228:327, offset: 0x0115be9b, size: 36 bytes, params: 2, frame: 3
|
|
return a0 !== undefined && a0.type !== ChannelTypes.DM;
|
|
}
|
|
|
|
function isSpam_43730(a0) { // fn#43730, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5228:420, offset: 0x0115bebf, size: 67 bytes, params: 2, frame: 14
|
|
var r0;
|
|
var value;
|
|
const isSpammer2 = isSpammer(a0.author.id);
|
|
if (isSpammer2) {
|
|
value = require(5051) /* metro dependency 5051: AutomodMessageUtils */;
|
|
value = !value.isAutomodMessageRecord(a0);
|
|
r0 = value;
|
|
} else {
|
|
r0 = isSpammer2;
|
|
}
|
|
return r0;
|
|
}
|
|
|