This commit is contained in:
janisslsm committed 2026-07-28 01:06:53 +03:00
1 parent af3b49f756
commit 1781d25a15
22448 files changed
+2731829 -2650550

No files matched your search

@@ -1,74 +1,81 @@
/* Metro module 9256; source: modules/rtc/hooks/useIsSecureFramesVerified.tsx; dependencies: [1226, 4294, 9257, 9293, 566, 9298, 4285, 2] */
import AuthenticationStore from '../../../stores/AuthenticationStore.tsx'; /* Metro dependency 1226 */
import RTCConnectionStore from '../../../stores/RTCConnectionStore.tsx'; /* Metro dependency 4294 */
import SecureFramesVerifiedStore from '../SecureFramesVerifiedStore.tsx'; /* Metro dependency 9257 */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as FluxModule from '../../../external/discord_common/js/packages/flux/index.tsx'; /* Metro dependency 566 */
import * as UseIsSecureFramesUIEnabledModule from './useIsSecureFramesUIEnabled.tsx'; /* Metro dependency 9293 */
import * as UseIsEmptyRTCConnectionModule from './useIsEmptyRTCConnection.tsx'; /* Metro dependency 9298 */
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');
(FileImportTrackerModule).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 (FluxModule).useStateFromStores([SecureFramesVerifiedStore,
AuthenticationStore, RTCConnectionStore], _fun72304,
[(UseIsSecureFramesUIEnabledModule).useIsSecureFramesUIEnabled({channelId: channelId}),
userId]);
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 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) {
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 (FluxModule).useStateFromStores([SecureFramesVerifiedStore,
AuthenticationStore], _fun72306,
[(UseIsEmptyRTCConnectionModule).useIsStreamRTCConnectionEmpty(streamKey),
(UseIsSecureFramesUIEnabledModule).useIsSecureFramesUIEnabled({channelId: channelId}),
streamKey]);
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;
}
if (streamKey == null) {
return false;
}
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 (FluxModule).useStateFromStores([SecureFramesVerifiedStore], _fun72308,
[(UseIsEmptyRTCConnectionModule).useIsCallRTCConnectionEmpty(),
(UseIsSecureFramesUIEnabledModule).useIsSecureFramesUIEnabled({channelId: channelId})]);
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;
}
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;
}
global.__d(_fun72302, 9256, [1226, 4294, 9257, 9293, 566, 9298, 4285,
2]) /* metro module 9256, dependencies: [1226, 4294, 9257, 9293, 566, 9298, 4285, 2] */;