51 lines
1.7 KiB
TypeScript
51 lines
1.7 KiB
TypeScript
// Module ID: 9283
|
|
// Function ID: 9284
|
|
// Name: useIsStreamRTCConnectionEmpty
|
|
// Dependencies: [1218, 4416, 4430, 589, 2]
|
|
// Exports: useIsCallRTCConnectionEmpty, useIsStreamRTCConnectionEmpty
|
|
|
|
// Module 9283 (useIsStreamRTCConnectionEmpty)
|
|
import fetchFingerprint from "fetchFingerprint";
|
|
import createRTCConnection from "createRTCConnection";
|
|
import initialize from "initialize";
|
|
|
|
const require = arg1;
|
|
const result = require("initialize").fileFinishedImporting("modules/rtc/hooks/useIsEmptyRTCConnection.tsx");
|
|
|
|
export const useIsStreamRTCConnectionEmpty = function useIsStreamRTCConnectionEmpty(stateFromStores4) {
|
|
const _require = stateFromStores4;
|
|
const items = [initialize, fetchFingerprint];
|
|
return _require(589).useStateFromStores(items, () => {
|
|
if (null == closure_0) {
|
|
return true;
|
|
} else {
|
|
const userIds = outer1_4.getUserIds(tmp);
|
|
let tmp3 = null == userIds;
|
|
if (!tmp3) {
|
|
let tmp6 = 0 === userIds.size;
|
|
if (!tmp6) {
|
|
tmp6 = 1 === userIds.size && userIds.has(tmp5);
|
|
const tmp7 = 1 === userIds.size && userIds.has(tmp5);
|
|
}
|
|
tmp3 = tmp6;
|
|
}
|
|
return tmp3;
|
|
}
|
|
});
|
|
};
|
|
export const useIsCallRTCConnectionEmpty = function useIsCallRTCConnectionEmpty() {
|
|
const items = [createRTCConnection, fetchFingerprint];
|
|
return require(589) /* initialize */.useStateFromStores(items, () => {
|
|
userIds = userIds.getUserIds();
|
|
let tmp = null == userIds;
|
|
if (!tmp) {
|
|
let tmp4 = 0 === userIds.size;
|
|
if (!tmp4) {
|
|
tmp4 = 1 === userIds.size && userIds.has(tmp3);
|
|
const tmp5 = 1 === userIds.size && userIds.has(tmp3);
|
|
}
|
|
tmp = tmp4;
|
|
}
|
|
return tmp;
|
|
});
|
|
};
|