decord/source/modules/rtc/hooks/useIsSecureFramesKeyInconsistent.tsx
2026-08-12 06:57:52 +00:00

59 lines
2.2 KiB
TypeScript

// Module ID: 9266
// Function ID: 9267
// Name: useIsSecureFramesKeyInconsistent
// Dependencies: [19, 4415, 4429, 589, 9255, 2]
// Exports: useAlertIfSecureFramesKeyInconsistent, useIsSecureFramesKeyInconsistent
// Module 9266 (useIsSecureFramesKeyInconsistent)
import noop from "noop";
import createRTCConnection from "createRTCConnection";
import initialize from "initialize";
const require = arg1;
let result = require("initialize").fileFinishedImporting("modules/rtc/hooks/useIsSecureFramesKeyInconsistent.tsx");
export const useIsSecureFramesKeyInconsistent = function useIsSecureFramesKeyInconsistent(userId) {
userId = userId.userId;
const items = [createRTCConnection, initialize];
return userId(589).useStateFromStores(items, () => {
const items = [onAlertOpen, stateFromStores];
return userId(userId[4]).getIsSecureFramesKeyInconsistent(userId, items);
});
};
export const useAlertIfSecureFramesKeyInconsistent = function useAlertIfSecureFramesKeyInconsistent(channelId) {
channelId = channelId.channelId;
let userId = channelId;
userId = channelId.userId;
const nickname = channelId.nickname;
const onAlertOpen = channelId.onAlertOpen;
let stateFromStores;
let closure_5;
let items = [onAlertOpen, stateFromStores];
stateFromStores = userId(userId[3]).useStateFromStores(items, () => {
const items = [onAlertOpen, stateFromStores];
return userId(userId[4]).getIsSecureFramesKeyInconsistent(userId, items);
});
closure_5 = nickname.useRef(null);
const items1 = [channelId, stateFromStores, nickname, onAlertOpen, userId];
const effect = nickname.useEffect(() => {
if (stateFromStores) {
if (null == ref.current) {
const _setTimeout = setTimeout;
tmp.current = setTimeout(() => {
callback();
let obj = current(outer1_1[4]);
obj = { userId: closure_1, channelId: current, nickname: noop };
const result = obj.showSecureFramesKeyInconsistentAlert(obj);
}, 1000);
let tmp3 = tmp;
}
const current = tmp3.current;
return () => {
clearTimeout(current);
};
}
tmp3 = ref;
clearTimeout(ref.current);
ref.current = null;
}, items1);
};