decord/alpha/source/modules/calls/native/getPrivateChannelCall.tsx

105 lines
2.7 KiB
TypeScript
Raw Normal View History

2026-10-09 10:00:15 +00:00
// Module ID: 10199
// Function ID: 10200
2026-07-20 16:05:17 +00:00
// Name: getPrivateChannelCall
2026-10-09 10:00:15 +00:00
// Dependencies: [5112, 1085, 7481, 7980, 1126, 8768, 2]
2026-07-20 16:05:17 +00:00
// Exports: default
2026-10-09 10:00:15 +00:00
// Module 10199 (getPrivateChannelCall)
2026-10-03 08:58:59 +00:00
import Constants from "Constants" /* 1085 */;
2026-10-09 10:00:15 +00:00
import CallsUtils from "CallsUtils" /* 8768 */;
import VoiceStateStore from "VoiceStateStore" /* 5112 */;
2026-10-03 08:58:59 +00:00
import size from "module_2" /* 2 */;
2026-07-23 10:11:24 +00:00
const require = globalThis.__r;
2026-10-03 08:58:59 +00:00
let _require;
2026-10-03 08:58:59 +00:00
const NOOP_NULL = Constants.NOOP_NULL;
const result = size.fileFinishedImporting("modules/calls/native/getPrivateChannelCall.tsx");
2026-07-20 16:05:17 +00:00
export default function getPrivateChannelCall(id) {
2026-10-03 08:58:59 +00:00
let stringResult;
let tmp9Result;
_require = id;
2026-07-29 08:29:29 +00:00
let flag = arg1;
2026-07-20 16:05:17 +00:00
if (arg1 === undefined) {
flag = false;
}
2026-07-29 08:29:29 +00:00
let handleStartCall = arg2;
if (arg2 === undefined) {
handleStartCall = require("PrivateChannelCallUtils").handleStartCall;
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
let handleJoinCall = arg3;
if (arg3 === undefined) {
handleJoinCall = require("PrivateChannelCallUtils").handleJoinCall;
2026-07-20 16:05:17 +00:00
}
2026-07-23 10:11:24 +00:00
const isInChannelResult = handleStartCall.isInChannel(id.id);
2026-10-03 08:58:59 +00:00
let obj = require("useIsCallActive");
const checkIsCallActiveResult = obj.checkIsCallActive(id.id);
2026-07-20 16:05:17 +00:00
if (id.isSystemDM()) {
2026-07-23 10:11:24 +00:00
const C = handleJoinCall;
2026-10-03 08:58:59 +00:00
tmp9Result = null;
2026-07-20 16:05:17 +00:00
} else if (isInChannelResult) {
if (!flag) {
2026-07-29 08:29:29 +00:00
const string2 = tmp6(tmp7[4]).intl.string;
2026-07-20 16:05:17 +00:00
class C {
constructor() {
obj = closure_0(closure_1[5]);
2026-07-23 10:11:24 +00:00
return obj.handleDisconnect(closure_0);
2026-07-20 16:05:17 +00:00
}
}
}
class C {
constructor() {
obj = closure_0(closure_1[5]);
2026-07-23 10:11:24 +00:00
return obj.handleDisconnect(closure_0);
2026-07-20 16:05:17 +00:00
}
}
2026-07-29 08:29:29 +00:00
tmp9Result = tmp16;
2026-07-20 16:05:17 +00:00
} else if (checkIsCallActiveResult) {
if (flag) {
class C {
constructor() {
2026-07-23 10:11:24 +00:00
return handleJoinCall(closure_0, c1);
2026-07-20 16:05:17 +00:00
}
}
} else {
2026-07-29 08:29:29 +00:00
const intl3 = tmp6(tmp7[4]).intl;
2026-07-20 16:05:17 +00:00
class C {
constructor() {
2026-07-23 10:11:24 +00:00
return handleJoinCall(closure_0, c1);
2026-07-20 16:05:17 +00:00
}
}
}
class C {
constructor() {
2026-07-23 10:11:24 +00:00
return handleJoinCall(closure_0, c1);
2026-07-20 16:05:17 +00:00
}
}
} else {
2026-07-29 08:29:29 +00:00
const intl = tmp6(tmp7[4]).intl;
2026-07-20 16:05:17 +00:00
class C {
constructor() {
2026-07-23 10:11:24 +00:00
return handleStartCall(closure_0, c1);
2026-07-20 16:05:17 +00:00
}
}
if (flag) {
2026-07-29 08:29:29 +00:00
tmp9Result = tmp9(tmp10["7AWk50"]);
2026-07-20 16:05:17 +00:00
} else {
2026-07-29 08:29:29 +00:00
tmp9Result = tmp9(tmp10["EZgS+9"]);
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
const intl2 = tmp6(tmp7[4]).intl;
const string = intl2.string;
const t = tmp6(tmp7[4]).t;
2026-07-20 16:05:17 +00:00
if (flag) {
2026-10-03 08:58:59 +00:00
stringResult = string(t.oCqlGG);
2026-07-20 16:05:17 +00:00
} else {
2026-07-29 08:29:29 +00:00
stringResult = string(t.focH1t);
2026-07-20 16:05:17 +00:00
}
}
2026-10-03 08:58:59 +00:00
const obj2 = { text: tmp9Result, accessibilityHint: stringResult, inCall: isInChannelResult, onPress: C };
2026-07-29 08:29:29 +00:00
if (stringResult == null) {
stringResult = tmp9Result;
2026-07-20 16:05:17 +00:00
}
return obj2;
2026-07-20 16:05:17 +00:00
};