decord/source/modules/calls/mobile/useIsCallActive.tsx

44 lines
1.5 KiB
TypeScript
Raw Normal View History

2026-07-25 08:10:48 +00:00
// Module ID: 7703
2026-07-27 11:26:19 +00:00
// Function ID: 61550
2026-07-20 16:05:17 +00:00
// Name: checkIsCallActive
2026-07-25 08:10:48 +00:00
// Dependencies: [4810, 4144, 4149, 566, 2]
2026-07-20 16:05:17 +00:00
// Exports: default, useIsCallActiveNullable
2026-07-25 08:10:48 +00:00
// Module 7703 (checkIsCallActive)
2026-07-23 10:11:24 +00:00
import _isNativeReflectConstruct from "_isNativeReflectConstruct";
import closure_3 from "_isNativeReflectConstruct";
import { ParticipantTypes } from "ParticipantTypes";
2026-07-20 16:05:17 +00:00
2026-07-23 10:11:24 +00:00
const require = arg1;
2026-07-20 16:05:17 +00:00
function checkIsCallActive(channelId, id) {
let isCallActiveResult = callActive.isCallActive(channelId, id);
if (isCallActiveResult) {
2026-07-23 10:11:24 +00:00
participants = participants.getParticipants(channelId);
isCallActiveResult = participants.some((type) => type.type === outer1_4.USER && !type.ringing);
2026-07-20 16:05:17 +00:00
}
return isCallActiveResult;
}
2026-07-23 10:11:24 +00:00
const result = require("ParticipantTypes").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-07-20 16:05:17 +00:00
const dependencyMap = arg1;
2026-07-23 10:11:24 +00:00
const items = [_isNativeReflectConstruct, closure_3];
2026-07-20 16:05:17 +00:00
const items1 = [arg0, arg1];
2026-07-23 10:11:24 +00:00
return _require(566).useStateFromStores(items, () => outer1_5(closure_0, closure_1), items1);
2026-07-20 16:05:17 +00:00
};
export { checkIsCallActive };
export const useIsCallActiveNullable = function useIsCallActiveNullable(id) {
2026-07-23 10:11:24 +00:00
const _require = id;
2026-07-20 16:05:17 +00:00
const dependencyMap = arg1;
2026-07-23 10:11:24 +00:00
const items = [_isNativeReflectConstruct, closure_3];
2026-07-20 16:05:17 +00:00
const items1 = [id, arg1];
2026-07-23 10:11:24 +00:00
return _require(566).useStateFromStores(items, () => {
let tmp = null != closure_0;
2026-07-20 16:05:17 +00:00
if (tmp) {
2026-07-23 10:11:24 +00:00
tmp = outer1_5(closure_0, closure_1);
2026-07-20 16:05:17 +00:00
}
return tmp;
}, items1);
};