41 lines
2.3 KiB
TypeScript
41 lines
2.3 KiB
TypeScript
/* Metro module 5050; source: modules/messages/isSpam.tsx; dependencies: [1878, 661, 5051, 2] */
|
|
import UserStore from '../../stores/UserStore.tsx'; /* Metro dependency 1878 */
|
|
import * as FileImportTrackerModule from '../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
|
|
import * as ConstantsModule from '../../Constants.tsx'; /* Metro dependency 661 */
|
|
|
|
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 isSpammer2 = isSpammer;
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
(FileImportTrackerModule).fileFinishedImporting('modules/messages/isSpam.tsx');
|
|
exports.isSpamSupported = isSpamSupported;
|
|
exports.isSpammer = isSpammer2;
|
|
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;
|
|
}
|
|
|
|
}
|
|
|
|
global.__d(_fun43727, 5050, [1878, 661, 5051, 2]) /* metro module 5050, dependencies: [1878, 661, 5051, 2] */;
|