Files
discord-decomp/sources/modules/calls/native/getPrivateChannelCall.tsx
T
2026-07-27 16:20:00 +03:00

77 lines
3.6 KiB
TypeScript

/* Metro module 7708; source: modules/calls/native/getPrivateChannelCall.tsx; dependencies: [4297, 661, 7709, 8214, 1244, 9228, 2] */
function _fun61566(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#61566, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7886:6, offset: 0x01b4564d, size: 134 bytes, params: 8, frame: 18
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const voiceStateStore = importDefault(4297) /* metro dependency 4297: VoiceStateStore */;
const env0_3 = (require(661) /* metro dependency 661: Constants */).NOOP_NULL;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/calls/native/getPrivateChannelCall.tsx');
exports.default = getPrivateChannelCall;
}
function getPrivateChannelCall(a0) { // fn#61567, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7886:216, offset: 0x01b456d3, size: 621 bytes, params: 2, frame: 23
var r1;
var r3;
var r4;
var r7;
var r9;
var handleJoinCall;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
var string;
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
let value = a1;
const value2 = a2;
const value3 = a3;
const env0_0 = a0;
const value4 = undefined;
const r8 = value !== value4 ? value : false;
if (value2 !== value4) {
r1 = value2;
} else {
r1 = (require(7709) /* metro dependency 7709: PrivateChannelCallUtils */).handleStartCall;
}
if (value3 === value4) {
handleJoinCall = (require(7709) /* metro dependency 7709: PrivateChannelCallUtils */).handleJoinCall;
}
const isInChannel2 = VoiceStateStore.isInChannel(a0.id);
const useIsCallActiveModule = require(8214) /* metro dependency 8214: useIsCallActive */;
if (a0.isSystemDM()) {
value = null;
r1 = NOOP_NULL;
r3 = value;
r4 = value4;
} else if (isInChannel2) {
r7 = r8 ? null : intl.string(t['4ry6yi']);
r1 = getPrivateChannelCallC;
r3 = r7;
r4 = value4;
} else if (useIsCallActiveModule.checkIsCallActive(a0.id)) {
r9 = r8 ? a0 != null && VoiceStateStore.hasVideo(a0.id) ? intl.string(t.W68MhH) : null : intl.string(t.fdEeb5);
r1 = getPrivateChannelCallC_61569;
r3 = r9;
r4 = value4;
} else {
string = intl.string;
r3 = r8 ? Reflect.apply(string, intl, [t['7AWk50']]) : Reflect.apply(string, intl, [t['EZgS+9']]);
string = intl.string;
r4 = r8 ? Reflect.apply(string, intl, [t.oCqlGG]) : Reflect.apply(string, intl, [t.focH1t]);
r1 = getPrivateChannelCallC_61570;
}
const object2 = {text: r3};
r3 = r4 ?? r3;
object2.accessibilityHint = r3;
object2.inCall = isInChannel2;
object2.onPress = r1;
return object2;
}
function getPrivateChannelCallC() { // fn#61568, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7886:462, owner: getPrivateChannelCall.C, offset: 0x01b45940, size: 45 bytes, params: 1, frame: 11
const value = environment.__proto__;
return (require(9228) /* metro dependency 9228: CallsUtils */).handleDisconnect(env0_0);
}
function getPrivateChannelCallC_61569() { // fn#61569, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7886:611, owner: getPrivateChannelCall.C, offset: 0x01b4596d, size: 25 bytes, params: 1, frame: 13
return env0_3(env0_0, env0_1);
}