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

60 lines
2.2 KiB
TypeScript
Raw Normal View History

2026-09-03 10:05:34 +00:00
// Module ID: 9877
// Function ID: 9878
2026-07-20 16:05:17 +00:00
// Name: useIsSecureFramesKeyInconsistent
2026-09-03 10:05:34 +00:00
// Dependencies: [19, 4554, 4568, 586, 9865, 2]
2026-07-29 08:29:29 +00:00
// Exports: useAlertIfSecureFramesKeyInconsistent, useIsSecureFramesKeyInconsistent
2026-07-20 16:05:17 +00:00
2026-09-03 10:05:34 +00:00
// Module 9877 (useIsSecureFramesKeyInconsistent)
2026-08-24 06:08:38 +00:00
import closure_2 from "noop" /* 19 */;
2026-09-01 10:26:29 +00:00
import closure_3 from "createRTCConnection" /* 4554 */;
import closure_4 from "initialize" /* 4568 */;
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
let result = require("set").fileFinishedImporting("modules/rtc/hooks/useIsSecureFramesKeyInconsistent.tsx");
2026-07-29 08:29:29 +00:00
export const useIsSecureFramesKeyInconsistent = function useIsSecureFramesKeyInconsistent(userId) {
2026-07-23 10:11:24 +00:00
userId = userId.userId;
2026-08-24 06:08:38 +00:00
const items = [closure_3, closure_4];
2026-09-02 09:53:35 +00:00
return userId(586).useStateFromStores(items, () => {
2026-07-29 08:29:29 +00:00
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;
2026-08-24 06:08:38 +00:00
closure_5 = undefined;
2026-07-29 08:29:29 +00:00
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();
2026-08-24 06:08:38 +00:00
let obj = current(closure_1_1[4]);
obj = { userId: closure_1, channelId: current, nickname: closure_2 };
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
};