Initial commit
This commit is contained in:
commit
af3b49f756
16065 files changed
+2938410
No files matched your search
@@ -0,0 +1,74 @@
|
||||
/* Metro module 9256; source: modules/rtc/hooks/useIsSecureFramesVerified.tsx; dependencies: [1226, 4294, 9257, 9293, 566, 9298, 4285, 2] */
|
||||
function _fun72302(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#72302, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9441:6, offset: 0x01d41f1e, size: 172 bytes, params: 8, frame: 19
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const authenticationStore = importDefault(1226) /* metro dependency 1226: AuthenticationStore */;
|
||||
const rtcConnectionStore = importDefault(4294) /* metro dependency 4294: RTCConnectionStore */;
|
||||
const secureFramesVerifiedStore = importDefault(9257) /* metro dependency 9257: SecureFramesVerifiedStore */;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/rtc/hooks/useIsSecureFramesVerified.tsx');
|
||||
exports.useIsUserSecureFramesVerified = useIsUserSecureFramesVerified;
|
||||
exports.useIsStreamSecureFramesVerified = useIsStreamSecureFramesVerified;
|
||||
exports.useIsCallSecureFramesVerified = useIsCallSecureFramesVerified;
|
||||
}
|
||||
|
||||
function useIsUserSecureFramesVerified({userId, channelId}) { // fn#72303, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9441:239, offset: 0x01d41fca, size: 138 bytes, params: 2, frame: 20
|
||||
return (require(566) /* metro dependency 566: flux */).useStateFromStores([SecureFramesVerifiedStore,
|
||||
AuthenticationStore, RTCConnectionStore], _fun72304,
|
||||
[(require(9293) /* metro dependency 9293: useIsSecureFramesUIEnabled */).useIsSecureFramesUIEnabled({channelId: channelId}),
|
||||
userId]);
|
||||
}
|
||||
|
||||
function useIsStreamSecureFramesVerified({streamKey, channelId}) { // fn#72305, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9441:517, offset: 0x01d420ba, size: 162 bytes, params: 2, frame: 20
|
||||
return (require(566) /* metro dependency 566: flux */).useStateFromStores([SecureFramesVerifiedStore,
|
||||
AuthenticationStore], _fun72306,
|
||||
[(require(9298) /* metro dependency 9298: useIsEmptyRTCConnection */).useIsStreamRTCConnectionEmpty(streamKey),
|
||||
(require(9293) /* metro dependency 9293: useIsSecureFramesUIEnabled */).useIsSecureFramesUIEnabled({channelId: channelId}),
|
||||
streamKey]);
|
||||
}
|
||||
|
||||
function useIsCallSecureFramesVerified({channelId}) { // fn#72307, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9441:897, offset: 0x01d421d9, size: 139 bytes, params: 2, frame: 19
|
||||
return (require(566) /* metro dependency 566: flux */).useStateFromStores([SecureFramesVerifiedStore], _fun72308,
|
||||
[(require(9298) /* metro dependency 9298: useIsEmptyRTCConnection */).useIsCallRTCConnectionEmpty(),
|
||||
(require(9293) /* metro dependency 9293: useIsSecureFramesUIEnabled */).useIsSecureFramesUIEnabled({channelId: channelId})]);
|
||||
}
|
||||
|
||||
function _fun72304() { // fn#72304, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9441:401, offset: 0x01d42054, size: 102 bytes, params: 1, frame: 13
|
||||
let r0 = userId != null && env0_1 && RTCConnectionStore.isUserConnected(userId);
|
||||
r0 = r0 && AuthenticationStore.getId() !== userId && SecureFramesVerifiedStore.isUserVerified(userId);
|
||||
return r0;
|
||||
}
|
||||
|
||||
function _fun72306() { // fn#72306, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9441:725, offset: 0x01d4215c, size: 125 bytes, params: 1, frame: 14
|
||||
var value2;
|
||||
var id;
|
||||
var moduleValue;
|
||||
if (env0_1) {
|
||||
if (env0_2) {
|
||||
return false;
|
||||
}
|
||||
if (streamKey == null) {
|
||||
return false;
|
||||
}
|
||||
value2 = environment.__proto__;
|
||||
id = AuthenticationStore.getId();
|
||||
moduleValue = require(4285) /* metro dependency 4285: StreamKeyUtils */;
|
||||
return moduleValue.decodeStreamKey(streamKey).ownerId !== id && SecureFramesVerifiedStore.isStreamVerified(streamKey);
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
function _fun72308() { // fn#72308, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9441:1086, offset: 0x01d42264, size: 44 bytes, params: 1, frame: 10
|
||||
const binding = env0_0;
|
||||
let r0 = binding ? env0_1 : !binding;
|
||||
let value = !r0;
|
||||
if (r0) {
|
||||
r0 = value;
|
||||
} else {
|
||||
value = environment.__proto__;
|
||||
value = SecureFramesVerifiedStore.isCallVerified();
|
||||
r0 = value;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user