2026-08-24 06:08:38 +00:00
|
|
|
// Module ID: 8244
|
|
|
|
|
// Function ID: 8245
|
2026-07-29 08:29:29 +00:00
|
|
|
// Name: useIsCallActive
|
2026-08-24 06:08:38 +00:00
|
|
|
// Dependencies: [4500, 4778, 4549, 589, 2]
|
2026-07-29 08:29:29 +00:00
|
|
|
// Exports: checkIsCallActive, default, useIsCallActiveNullable
|
2026-07-20 16:05:17 +00:00
|
|
|
|
2026-08-24 06:08:38 +00:00
|
|
|
// Module 8244 (useIsCallActive)
|
|
|
|
|
import closure_2 from "callConnect" /* 4500 */;
|
|
|
|
|
import closure_3 from "getParticipants" /* 4778 */;
|
|
|
|
|
import { ParticipantTypes } from "ParticipantTypes" /* 4549 */;
|
2026-07-20 16:05:17 +00:00
|
|
|
|
2026-07-23 10:11:24 +00:00
|
|
|
const require = arg1;
|
2026-08-24 06:08:38 +00:00
|
|
|
const result = require("set").fileFinishedImporting("modules/calls/mobile/useIsCallActive.tsx");
|
2026-07-20 16:05:17 +00:00
|
|
|
|
|
|
|
|
export default function useIsCallActive(arg0, arg1) {
|
2026-07-23 10:11:24 +00:00
|
|
|
const _require = arg0;
|
2026-08-24 06:08:38 +00:00
|
|
|
dependencyMap = arg1;
|
|
|
|
|
const items = [closure_2, closure_3];
|
2026-07-20 16:05:17 +00:00
|
|
|
const items1 = [arg0, arg1];
|
2026-07-29 08:29:29 +00:00
|
|
|
return _require(589).useStateFromStores(items, () => {
|
2026-08-24 06:08:38 +00:00
|
|
|
let isCallActiveResult = closure_1_2.isCallActive(closure_0, closure_1);
|
2026-07-29 08:29:29 +00:00
|
|
|
if (isCallActiveResult) {
|
2026-08-24 06:08:38 +00:00
|
|
|
const participants = closure_1_3.getParticipants(closure_0);
|
2026-07-29 08:29:29 +00:00
|
|
|
isCallActiveResult = participants.some((type) => type.type === constants.USER && !type.ringing);
|
|
|
|
|
}
|
|
|
|
|
return isCallActiveResult;
|
|
|
|
|
}, items1);
|
|
|
|
|
};
|
|
|
|
|
export const checkIsCallActive = function checkIsCallActive(channelId, id) {
|
|
|
|
|
let isCallActiveResult = callActive.isCallActive(channelId, id);
|
|
|
|
|
if (isCallActiveResult) {
|
|
|
|
|
participants = participants.getParticipants(channelId);
|
|
|
|
|
isCallActiveResult = participants.some((type) => type.type === constants.USER && !type.ringing);
|
|
|
|
|
}
|
|
|
|
|
return isCallActiveResult;
|
2026-07-20 16:05:17 +00:00
|
|
|
};
|
|
|
|
|
export const useIsCallActiveNullable = function useIsCallActiveNullable(id) {
|
2026-07-23 10:11:24 +00:00
|
|
|
const _require = id;
|
2026-08-24 06:08:38 +00:00
|
|
|
dependencyMap = arg1;
|
|
|
|
|
const items = [closure_2, closure_3];
|
2026-07-20 16:05:17 +00:00
|
|
|
const items1 = [id, arg1];
|
2026-07-29 08:29:29 +00:00
|
|
|
return _require(589).useStateFromStores(items, () => {
|
|
|
|
|
let tmp2 = null != closure_0;
|
|
|
|
|
if (tmp2) {
|
2026-08-24 06:08:38 +00:00
|
|
|
let isCallActiveResult = closure_1_2.isCallActive(tmp, closure_1);
|
2026-07-29 08:29:29 +00:00
|
|
|
if (isCallActiveResult) {
|
2026-08-24 06:08:38 +00:00
|
|
|
const participants = closure_1_3.getParticipants(tmp);
|
2026-07-29 08:29:29 +00:00
|
|
|
isCallActiveResult = participants.some((type) => type.type === constants.USER && !type.ringing);
|
|
|
|
|
}
|
|
|
|
|
tmp2 = isCallActiveResult;
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
2026-07-29 08:29:29 +00:00
|
|
|
return tmp2;
|
2026-07-20 16:05:17 +00:00
|
|
|
}, items1);
|
|
|
|
|
};
|