Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4745.js (118.4 MB)
48 lines
1.5 KiB
TypeScript
48 lines
1.5 KiB
TypeScript
// Module ID: 9176
|
|
// Function ID: 9177
|
|
// Name: useIsSecureFramesUIEnabled
|
|
// Dependencies: [1957, 4583, 9158, 504, 2]
|
|
// Exports: useIsSecureFramesUIEnabled
|
|
|
|
// Module 9176 (useIsSecureFramesUIEnabled)
|
|
import ChannelStore from "ChannelStore" /* 1957 */;
|
|
import RTCConnectionStore from "RTCConnectionStore" /* 4583 */;
|
|
|
|
const require = fn;
|
|
let closure_4 = fn(9158).END_TO_END_ENCRYPTION_DISABLED;
|
|
const size = fn(2);
|
|
const result = size.fileFinishedImporting("modules/rtc/hooks/useIsSecureFramesUIEnabled.tsx");
|
|
|
|
export const useIsSecureFramesUIEnabled = function useIsSecureFramesUIEnabled(channelId) {
|
|
channelId = channelId.channelId;
|
|
let items = [RTCConnectionStore, ChannelStore];
|
|
const items1 = [channelId];
|
|
return channelId(504).useStateFromStores(items, () => {
|
|
const items = [RTCConnectionStore, ChannelStore];
|
|
[obj, obj2] = items;
|
|
let flag = false;
|
|
if (null != channelId) {
|
|
flag = false;
|
|
if (obj.getChannelId() === tmp) {
|
|
const channel = obj2.getChannel(tmp);
|
|
flag = false;
|
|
if (null != channel) {
|
|
flag = false;
|
|
if (!channel.isGuildStageVoice()) {
|
|
const secureFramesState = obj.getSecureFramesState();
|
|
let version;
|
|
if (secureFramesState != null) {
|
|
version = secureFramesState.version;
|
|
}
|
|
let tmp4 = null != version;
|
|
if (tmp4) {
|
|
tmp4 = version !== closure_4;
|
|
}
|
|
flag = tmp4;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
return flag;
|
|
}, items1);
|
|
};
|