Files
discord-decomp/sources/modules/guild_communication_disabled/CommunicationDisabledUtils.tsx
T
2026-07-27 16:20:00 +03:00

34 lines
1.6 KiB
TypeScript

/* Metro module 3773; source: modules/guild_communication_disabled/CommunicationDisabledUtils.tsx; dependencies: [2] */
function _fun28571(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#28571, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3900:6, offset: 0x00f7dc16, size: 100 bytes, params: 8, frame: 17
const closure = function(a0) {
var r0;
var Date;
var value2;
var value3;
var value4;
var value = a0 != null;
if (value) {
Date = global.Date;
value2 = new Date(a0);
Date = global.Date;
value3 = Object.create(Date.prototype, {constructor: {value: Date}});
value4 = new Date();
value2 = value2 > (value4 instanceof Object ? value4 : value3);
r0 = value2;
} else {
r0 = value;
}
return r0;
};
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/guild_communication_disabled/CommunicationDisabledUtils.tsx');
exports.isCommunicationDisabled = closure;
exports.isMemberCommunicationDisabled = isMemberCommunicationDisabled;
}
function isMemberCommunicationDisabled(a0) { // fn#28573, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3900:348, offset: 0x00f7dcc5, size: 36 bytes, params: 2, frame: 13
return isCommunicationDisabled(a0?.communicationDisabledUntil);
}