decord/source/modules/rtc/hooks/useIsSecureFramesKeyInconsistent.tsx

60 lines
2.2 KiB
TypeScript
Raw Normal View History

2026-08-08 06:10:11 +00:00
// Module ID: 9220
// Function ID: 9221
2026-07-20 16:05:17 +00:00
// Name: useIsSecureFramesKeyInconsistent
2026-08-08 06:10:11 +00:00
// Dependencies: [19, 4375, 4389, 589, 9209, 2]
2026-07-29 08:29:29 +00:00
// Exports: useAlertIfSecureFramesKeyInconsistent, useIsSecureFramesKeyInconsistent
2026-07-20 16:05:17 +00:00
2026-08-08 06:10:11 +00:00
// Module 9220 (useIsSecureFramesKeyInconsistent)
2026-07-29 08:29:29 +00:00
import noop from "noop";
import createRTCConnection from "createRTCConnection";
import initialize from "initialize";
2026-07-20 16:05:17 +00:00
2026-07-23 10:11:24 +00:00
const require = arg1;
2026-07-29 08:29:29 +00:00
let result = require("initialize").fileFinishedImporting("modules/rtc/hooks/useIsSecureFramesKeyInconsistent.tsx");
export const useIsSecureFramesKeyInconsistent = function useIsSecureFramesKeyInconsistent(userId) {
2026-07-23 10:11:24 +00:00
userId = userId.userId;
2026-07-29 08:29:29 +00:00
const items = [createRTCConnection, initialize];
return userId(589).useStateFromStores(items, () => {
const items = [onAlertOpen, stateFromStores];
return userId(userId[4]).getIsSecureFramesKeyInconsistent(userId, items);
2026-07-20 16:05:17 +00:00
});
2026-07-29 08:29:29 +00:00
};
2026-07-20 16:05:17 +00:00
export const useAlertIfSecureFramesKeyInconsistent = function useAlertIfSecureFramesKeyInconsistent(channelId) {
channelId = channelId.channelId;
2026-07-29 08:29:29 +00:00
let userId = channelId;
userId = channelId.userId;
2026-07-20 16:05:17 +00:00
const nickname = channelId.nickname;
const onAlertOpen = channelId.onAlertOpen;
2026-07-29 08:29:29 +00:00
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];
2026-07-23 10:11:24 +00:00
const effect = nickname.useEffect(() => {
2026-07-29 08:29:29 +00:00
if (stateFromStores) {
2026-07-20 16:05:17 +00:00
if (null == ref.current) {
const _setTimeout = setTimeout;
2026-07-29 08:29:29 +00:00
tmp.current = setTimeout(() => {
callback();
let obj = current(outer1_1[4]);
obj = { userId: closure_1, channelId: current, nickname: noop };
2026-07-20 16:05:17 +00:00
const result = obj.showSecureFramesKeyInconsistentAlert(obj);
}, 1000);
2026-07-29 08:29:29 +00:00
let tmp3 = tmp;
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
const current = tmp3.current;
2026-07-20 16:05:17 +00:00
return () => {
clearTimeout(current);
};
}
2026-07-29 08:29:29 +00:00
tmp3 = ref;
2026-07-20 16:05:17 +00:00
clearTimeout(ref.current);
ref.current = null;
2026-07-29 08:29:29 +00:00
}, items1);
2026-07-20 16:05:17 +00:00
};