decord/alpha/source/modules/calls/native/getPrivateChannelCall.tsx
github-actions f95a0071ef chore: update source for alpha 349.1
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/05xxx/module_5021.js (118.4 MB)
2026-09-29 09:27:02 +00:00

103 lines
2.6 KiB
TypeScript

// Module ID: 10498
// Function ID: 10499
// Name: getPrivateChannelCall
// Dependencies: [4855, 1074, 5043, 7588, 1115, 9262, 2]
// Exports: default
// Module 10498 (getPrivateChannelCall)
import CallsUtils from "CallsUtils" /* 9262 */;
import VoiceStateStore from "VoiceStateStore" /* 4855 */;
const require = globalThis.__r;
require = fn;
const NOOP_NULL = fn(1074).NOOP_NULL;
const size = fn(2);
const result = size.fileFinishedImporting("modules/calls/native/getPrivateChannelCall.tsx");
export default function getPrivateChannelCall(id) {
_require = id;
let flag = arg1;
if (arg1 === undefined) {
flag = false;
}
let handleStartCall = arg2;
if (arg2 === undefined) {
handleStartCall = require("PrivateChannelCallUtils").handleStartCall;
}
let handleJoinCall = arg3;
if (arg3 === undefined) {
handleJoinCall = require("PrivateChannelCallUtils").handleJoinCall;
}
const isInChannelResult = handleStartCall.isInChannel(id.id);
const obj = require("useIsCallActive");
if (id.isSystemDM()) {
const C = handleJoinCall;
let tmp9Result = null;
} else if (isInChannelResult) {
if (!flag) {
const string2 = tmp6(tmp7[4]).intl.string;
class C {
constructor() {
obj = closure_0(closure_1[5]);
return obj.handleDisconnect(closure_0);
}
}
}
class C {
constructor() {
obj = closure_0(closure_1[5]);
return obj.handleDisconnect(closure_0);
}
}
tmp9Result = tmp16;
} else if (checkIsCallActiveResult) {
if (flag) {
class C {
constructor() {
return handleJoinCall(closure_0, c1);
}
}
} else {
const intl3 = tmp6(tmp7[4]).intl;
class C {
constructor() {
return handleJoinCall(closure_0, c1);
}
}
}
class C {
constructor() {
return handleJoinCall(closure_0, c1);
}
}
} else {
const intl = tmp6(tmp7[4]).intl;
class C {
constructor() {
return handleStartCall(closure_0, c1);
}
}
if (flag) {
tmp9Result = tmp9(tmp10["7AWk50"]);
} else {
tmp9Result = tmp9(tmp10["EZgS+9"]);
}
const intl2 = tmp6(tmp7[4]).intl;
const string = intl2.string;
const t = tmp6(tmp7[4]).t;
if (flag) {
let stringResult = string(t.oCqlGG);
} else {
stringResult = string(t.focH1t);
}
}
const obj2 = { text: tmp9Result, accessibilityHint: null, inCall: null, onPress: null };
if (stringResult == null) {
stringResult = tmp9Result;
}
obj2.accessibilityHint = stringResult;
obj2.inCall = isInChannelResult;
obj2.onPress = C;
return obj2;
};