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

104 lines
2.6 KiB
TypeScript
Raw Normal View History

// Module ID: 11015
// Function ID: 11016
2026-07-20 16:05:17 +00:00
// Name: getPrivateChannelCall
// Dependencies: [4657, 1074, 4845, 8097, 1115, 9225, 2]
2026-07-20 16:05:17 +00:00
// Exports: default
// Module 11015 (getPrivateChannelCall)
import CallsUtils from "CallsUtils" /* 9225 */;
import VoiceStateStore from "VoiceStateStore" /* 4657 */;
2026-07-23 10:11:24 +00:00
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");
2026-07-20 16:05:17 +00:00
export default function getPrivateChannelCall(id) {
_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);
const obj = require("useIsCallActive");
2026-07-20 16:05:17 +00:00
if (id.isSystemDM()) {
2026-07-23 10:11:24 +00:00
const C = handleJoinCall;
2026-07-29 08:29:29 +00:00
let 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-07-29 08:29:29 +00:00
let 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
}
}
const obj2 = { text: tmp9Result, accessibilityHint: null, inCall: null, onPress: null };
2026-07-29 08:29:29 +00:00
if (stringResult == null) {
stringResult = tmp9Result;
2026-07-20 16:05:17 +00:00
}
obj2.accessibilityHint = stringResult;
obj2.inCall = isInChannelResult;
obj2.onPress = C;
return obj2;
2026-07-20 16:05:17 +00:00
};