Initial commit
This commit is contained in:
commit
af3b49f756
16065 files changed
+2938410
No files matched your search
@@ -0,0 +1,65 @@
|
||||
/* Metro module 9298; source: modules/rtc/hooks/useIsEmptyRTCConnection.tsx; dependencies: [1226, 4294, 4395, 566, 2] */
|
||||
function _fun72687(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#72687, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9484:6, offset: 0x01d4e75b, size: 170 bytes, params: 8, frame: 19
|
||||
let env0_0 = require;
|
||||
const isEmpty_72688 = function(a0, a1) {
|
||||
return a0.size === 0 || a0.size === 1 && a0.has(a1);
|
||||
};
|
||||
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 streamRTCConnectionStore = importDefault(4395) /* metro dependency 4395: StreamRTCConnectionStore */;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/rtc/hooks/useIsEmptyRTCConnection.tsx');
|
||||
exports.useIsStreamRTCConnectionEmpty = function(a0) {
|
||||
var env0_0 = a0;
|
||||
return require(dependencyMap[3]).useStateFromStores([StreamRTCConnectionStore, AuthenticationStore], _fun72690);
|
||||
};
|
||||
exports.useIsCallRTCConnectionEmpty = function() {
|
||||
return require(dependencyMap[3]).useStateFromStores([RTCConnectionStore, AuthenticationStore], _fun72692);
|
||||
};
|
||||
}
|
||||
|
||||
function useIsStreamRTCConnectionEmpty(a0) { // fn#72689, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9484:299, offset: 0x01d4e837, size: 74 bytes, params: 2, frame: 15
|
||||
const env0_0 = a0;
|
||||
return (require(566) /* metro dependency 566: flux */).useStateFromStores([StreamRTCConnectionStore,
|
||||
AuthenticationStore], _fun72690);
|
||||
}
|
||||
|
||||
function useIsCallRTCConnectionEmpty() { // fn#72691, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9484:500, offset: 0x01d4e8cb, size: 67 bytes, params: 1, frame: 14
|
||||
return (require(566) /* metro dependency 566: flux */).useStateFromStores([RTCConnectionStore, AuthenticationStore],
|
||||
_fun72692);
|
||||
}
|
||||
|
||||
function _fun72690() { // fn#72690, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9484:382, offset: 0x01d4e881, size: 74 bytes, params: 1, frame: 14
|
||||
var r0;
|
||||
var isEmpty_726882;
|
||||
if (env0_0 == null) {
|
||||
return true;
|
||||
}
|
||||
const value3 = StreamRTCConnectionStore.getUserIds(env0_0) == null;
|
||||
if (value3) {
|
||||
r0 = value3;
|
||||
} else {
|
||||
isEmpty_726882 = isEmpty_72688(isEmpty_726882, AuthenticationStore.getId());
|
||||
r0 = isEmpty_726882;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
function _fun72692() { // fn#72692, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9484:580, offset: 0x01d4e90e, size: 54 bytes, params: 1, frame: 14
|
||||
var r0;
|
||||
var isEmpty_72688Binding;
|
||||
let value = environment.__proto__;
|
||||
const userIds = RTCConnectionStore.getUserIds();
|
||||
const value3 = userIds == null;
|
||||
if (value3) {
|
||||
r0 = value3;
|
||||
} else {
|
||||
isEmpty_72688Binding = isEmpty_72688;
|
||||
value = AuthenticationStore.getId();
|
||||
value = isEmpty_72688Binding(userIds, value);
|
||||
r0 = value;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,306 @@
|
||||
/* Metro module 9283; source: modules/rtc/hooks/useIsPersistentSecureFramesFingerprint.tsx; dependencies: [5, 57, 31, 4294, 9277, 566, 9275, 2] */
|
||||
function _fun72611(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#72611, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9469:6, offset: 0x01d4baf5, size: 187 bytes, params: 8, frame: 19
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_2 = importDefault(5) /* metro dependency 5 */;
|
||||
const env0_3 = importDefault(57) /* metro dependency 57 */;
|
||||
const env0_4 = importAll(31) /* metro dependency 31 */;
|
||||
const rtcConnectionStore = importDefault(4294) /* metro dependency 4294: RTCConnectionStore */;
|
||||
const env0_6 = (require(9277) /* metro dependency 9277: SecureFramesConstants */).SECURE_FRAMES_PUBLIC_KEY_VERSION;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/rtc/hooks/useIsPersistentSecureFramesFingerprint.tsx');
|
||||
exports.useIsPersistentSecureFramesFingerprint = useIsPersistentSecureFramesFingerprint;
|
||||
}
|
||||
|
||||
function useIsPersistentSecureFramesFingerprint({userId}) { // fn#72612, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9469:317, offset: 0x01d4bbb0, size: 260 bytes, params: 2, frame: 22
|
||||
const secureFramesRosterMapEntry = (require(566) /* metro dependency 566: flux */).useStateFromStores([RTCConnectionStore],
|
||||
function() {
|
||||
return RTCConnectionStore.getSecureFramesRosterMapEntry(userId);
|
||||
});
|
||||
const binding = env0_4;
|
||||
let useState = binding.useState;
|
||||
const value2 = Reflect.apply(useState, binding, [true]);
|
||||
const binding2 = env0_3;
|
||||
let value = binding2(value2, 2);
|
||||
const property = value[0];
|
||||
const env0_2 = value[1];
|
||||
useState = binding.useState;
|
||||
value = binding2(Reflect.apply(useState, binding, [false]), 2);
|
||||
const property2 = value[0];
|
||||
var env0_3 = value[1];
|
||||
useState = binding.useState;
|
||||
value = binding2(Reflect.apply(useState, binding, [false]), 2);
|
||||
const property3 = value[0];
|
||||
var env0_4 = value[1];
|
||||
const useCallback = binding.useCallback;
|
||||
value = _fun72614();
|
||||
value = Reflect.apply(useCallback, binding, [value, []]);
|
||||
binding.useEffect(_fun72618, [secureFramesRosterMapEntry, value, userId]);
|
||||
return {loading: property, isCurrentUserKeyPersistent: property2, isOtherUserKeyPersistent: property3};
|
||||
}
|
||||
|
||||
function _fun72614() { // fn#72614, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9469:592, offset: 0x01d4bccf, size: 36 bytes, params: 1, frame: 12
|
||||
const env0_0 = env1_2(_fun72616);
|
||||
return _fun72617;
|
||||
}
|
||||
|
||||
function _fun72618() { // fn#72618, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9469:858, offset: 0x01d4bde6, size: 70 bytes, params: 1, frame: 14
|
||||
if (secureFramesRosterMapEntry == null) {
|
||||
env0_3(false);
|
||||
env0_4(false);
|
||||
env0_2(false);
|
||||
} else {
|
||||
env0_5(userId, secureFramesRosterMapEntry);
|
||||
}
|
||||
}
|
||||
|
||||
function* _fun72616(a0, a1) { // fn#72616, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9469:612, offset: 0x01d4bcfe, size: 232 bytes, params: 3, frame: 22
|
||||
var value;
|
||||
var value2;
|
||||
var value3;
|
||||
var binding;
|
||||
var binding2;
|
||||
var binding3;
|
||||
var property;
|
||||
var value4;
|
||||
var isCurrentUserPublicKeyMatch;
|
||||
var isCurrentUserPublicKeyMatch2;
|
||||
var value5;
|
||||
var value6;
|
||||
var binding4;
|
||||
var binding5;
|
||||
var value7;
|
||||
var isPublicKeyMatch;
|
||||
var isPublicKeyMatch2;
|
||||
var value8;
|
||||
var value9;
|
||||
var error;
|
||||
exceptionLanding39: while (true) {
|
||||
value = undefined;
|
||||
value2 = false;
|
||||
if (value2) {
|
||||
return value;
|
||||
}
|
||||
value = environment.__proto__.__proto__;
|
||||
env2_2(true);
|
||||
value3 = environment.__proto__.__proto__.__proto__;
|
||||
reducibleJoin4: while (true) {
|
||||
reduciblePort38: while (true) {
|
||||
exceptionLanding32: while (true) {
|
||||
try {
|
||||
try {
|
||||
binding = env3_6;
|
||||
} catch (error) {
|
||||
break exceptionLanding32;
|
||||
}
|
||||
} catch (error) {
|
||||
break exceptionLanding39;
|
||||
}
|
||||
break reducibleJoin4;
|
||||
}
|
||||
try {
|
||||
binding = env2_3;
|
||||
} catch (error) {
|
||||
break exceptionLanding39;
|
||||
}
|
||||
try {
|
||||
binding(false);
|
||||
} catch (error) {
|
||||
break exceptionLanding39;
|
||||
}
|
||||
try {
|
||||
binding = env2_4;
|
||||
} catch (error) {
|
||||
break exceptionLanding39;
|
||||
}
|
||||
try {
|
||||
binding(false);
|
||||
} catch (error) {
|
||||
break exceptionLanding39;
|
||||
}
|
||||
break reduciblePort38;
|
||||
}
|
||||
env2_2(false);
|
||||
return undefined;
|
||||
}
|
||||
try {
|
||||
try {
|
||||
binding2 = env3_0;
|
||||
} catch (error) {
|
||||
break exceptionLanding32;
|
||||
}
|
||||
} catch (error) {
|
||||
break exceptionLanding39;
|
||||
}
|
||||
try {
|
||||
try {
|
||||
binding3 = env3_1;
|
||||
} catch (error) {
|
||||
break exceptionLanding32;
|
||||
}
|
||||
} catch (error) {
|
||||
break exceptionLanding39;
|
||||
}
|
||||
try {
|
||||
try {
|
||||
property = binding3[6];
|
||||
} catch (error) {
|
||||
break exceptionLanding32;
|
||||
}
|
||||
} catch (error) {
|
||||
break exceptionLanding39;
|
||||
}
|
||||
try {
|
||||
try {
|
||||
value4 = binding2(property);
|
||||
} catch (error) {
|
||||
break exceptionLanding32;
|
||||
}
|
||||
} catch (error) {
|
||||
break exceptionLanding39;
|
||||
}
|
||||
try {
|
||||
try {
|
||||
isCurrentUserPublicKeyMatch = value4.isCurrentUserPublicKeyMatch;
|
||||
} catch (error) {
|
||||
break exceptionLanding32;
|
||||
}
|
||||
} catch (error) {
|
||||
break exceptionLanding39;
|
||||
}
|
||||
try {
|
||||
try {
|
||||
isCurrentUserPublicKeyMatch2 = Reflect.apply(isCurrentUserPublicKeyMatch, value4, [binding]);
|
||||
} catch (error) {
|
||||
break exceptionLanding32;
|
||||
}
|
||||
} catch (error) {
|
||||
break exceptionLanding39;
|
||||
}
|
||||
yield isCurrentUserPublicKeyMatch2;
|
||||
try {
|
||||
try {
|
||||
value5 = undefined;
|
||||
value6 = false;
|
||||
} catch (error) {
|
||||
break exceptionLanding32;
|
||||
}
|
||||
} catch (error) {
|
||||
break exceptionLanding39;
|
||||
}
|
||||
if (value6) {
|
||||
env2_2(false);
|
||||
return value5;
|
||||
}
|
||||
try {
|
||||
try {
|
||||
binding4 = env3_0;
|
||||
} catch (error) {
|
||||
break exceptionLanding32;
|
||||
}
|
||||
} catch (error) {
|
||||
break exceptionLanding39;
|
||||
}
|
||||
try {
|
||||
try {
|
||||
binding5 = env3_1;
|
||||
} catch (error) {
|
||||
break exceptionLanding32;
|
||||
}
|
||||
} catch (error) {
|
||||
break exceptionLanding39;
|
||||
}
|
||||
try {
|
||||
try {
|
||||
property = binding5[6];
|
||||
} catch (error) {
|
||||
break exceptionLanding32;
|
||||
}
|
||||
} catch (error) {
|
||||
break exceptionLanding39;
|
||||
}
|
||||
try {
|
||||
try {
|
||||
value7 = binding4(property);
|
||||
} catch (error) {
|
||||
break exceptionLanding32;
|
||||
}
|
||||
} catch (error) {
|
||||
break exceptionLanding39;
|
||||
}
|
||||
try {
|
||||
try {
|
||||
isPublicKeyMatch = value7.isPublicKeyMatch;
|
||||
} catch (error) {
|
||||
break exceptionLanding32;
|
||||
}
|
||||
} catch (error) {
|
||||
break exceptionLanding39;
|
||||
}
|
||||
try {
|
||||
try {
|
||||
isPublicKeyMatch2 = Reflect.apply(isPublicKeyMatch, value7, [a0, a1, binding]);
|
||||
} catch (error) {
|
||||
break exceptionLanding32;
|
||||
}
|
||||
} catch (error) {
|
||||
break exceptionLanding39;
|
||||
}
|
||||
yield isPublicKeyMatch2;
|
||||
try {
|
||||
try {
|
||||
value8 = undefined;
|
||||
value9 = false;
|
||||
} catch (error) {
|
||||
break exceptionLanding32;
|
||||
}
|
||||
} catch (error) {
|
||||
break exceptionLanding39;
|
||||
}
|
||||
if (value9) {
|
||||
env2_2(false);
|
||||
return value8;
|
||||
}
|
||||
try {
|
||||
try {
|
||||
binding = env2_3;
|
||||
} catch (error) {
|
||||
break exceptionLanding32;
|
||||
}
|
||||
} catch (error) {
|
||||
break exceptionLanding39;
|
||||
}
|
||||
try {
|
||||
try {
|
||||
binding(value5);
|
||||
} catch (error) {
|
||||
break exceptionLanding32;
|
||||
}
|
||||
} catch (error) {
|
||||
break exceptionLanding39;
|
||||
}
|
||||
try {
|
||||
try {
|
||||
binding = env2_4;
|
||||
} catch (error) {
|
||||
break exceptionLanding32;
|
||||
}
|
||||
} catch (error) {
|
||||
break exceptionLanding39;
|
||||
}
|
||||
try {
|
||||
try {
|
||||
binding(value8);
|
||||
} catch (error) {
|
||||
break exceptionLanding32;
|
||||
}
|
||||
} catch (error) {
|
||||
break exceptionLanding39;
|
||||
}
|
||||
env2_2(false);
|
||||
return undefined;
|
||||
}
|
||||
env2_2(false);
|
||||
throw error;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,60 @@
|
||||
/* Metro module 9285; source: modules/rtc/hooks/useIsSecureFramesKeyInconsistent.tsx; dependencies: [31, 4294, 4395, 566, 9275, 2] */
|
||||
function _fun72634(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#72634, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9471:6, offset: 0x01d4c457, size: 166 bytes, params: 8, frame: 20
|
||||
const env0_0 = require;
|
||||
const closure = function({userId}) {
|
||||
return require(dependencyMap[3]).useStateFromStores([RTCConnectionStore, StreamRTCConnectionStore], _fun72636);
|
||||
};
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_2 = importAll(31) /* metro dependency 31 */;
|
||||
const rtcConnectionStore = importDefault(4294) /* metro dependency 4294: RTCConnectionStore */;
|
||||
const streamRTCConnectionStore = importDefault(4395) /* metro dependency 4395: StreamRTCConnectionStore */;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/rtc/hooks/useIsSecureFramesKeyInconsistent.tsx');
|
||||
exports.useIsSecureFramesKeyInconsistent = closure;
|
||||
exports.useAlertIfSecureFramesKeyInconsistent = useAlertIfSecureFramesKeyInconsistent;
|
||||
}
|
||||
|
||||
function useIsSecureFramesKeyInconsistent({userId}) { // fn#72635, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9471:126, offset: 0x01d4c4fd, size: 79 bytes, params: 2, frame: 15
|
||||
return (require(566) /* metro dependency 566: flux */).useStateFromStores([RTCConnectionStore,
|
||||
StreamRTCConnectionStore], function() {
|
||||
return require(dependencyMap[4]).getIsSecureFramesKeyInconsistent(userId, [RTCConnectionStore,
|
||||
StreamRTCConnectionStore]);
|
||||
});
|
||||
}
|
||||
|
||||
function useAlertIfSecureFramesKeyInconsistent({channelId, userId, nickname, onAlertOpen}) { // fn#72637, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9471:473, offset: 0x01d4c58e, size: 131 bytes, params: 2, frame: 19
|
||||
const env0_2 = nickname;
|
||||
const value2 = useIsSecureFramesKeyInconsistent({userId: userId});
|
||||
const binding = env0_2;
|
||||
const env0_5 = binding.useRef(null);
|
||||
binding.useEffect(_fun72638, [channelId, value2, nickname, onAlertOpen, userId]);
|
||||
}
|
||||
|
||||
function _fun72638() { // fn#72638, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9471:650, offset: 0x01d4c611, size: 122 bytes, params: 1, frame: 16
|
||||
var clearTimeout;
|
||||
var binding;
|
||||
if (env0_4) {
|
||||
if (env0_5.current == null) {
|
||||
env0_5.current = global.setTimeout(function() {
|
||||
onAlertOpen();
|
||||
require(dependencyMap[4]).showSecureFramesKeyInconsistentAlert({userId: userId, channelId: channelId,
|
||||
nickname: nickname});
|
||||
}, 1000);
|
||||
} else {
|
||||
clearTimeout = global.clearTimeout;
|
||||
binding = env0_5;
|
||||
clearTimeout(binding.current);
|
||||
binding.current = null;
|
||||
}
|
||||
} else {
|
||||
clearTimeout = global.clearTimeout;
|
||||
binding = env0_5;
|
||||
clearTimeout(binding.current);
|
||||
binding.current = null;
|
||||
}
|
||||
const current = env0_5.current;
|
||||
return function() {
|
||||
global.clearTimeout(current);
|
||||
};
|
||||
}
|
||||
|
||||
@@ -0,0 +1,83 @@
|
||||
/* Metro module 9293; source: modules/rtc/hooks/useIsSecureFramesUIEnabled.tsx; dependencies: [1379, 4294, 9277, 566, 2] */
|
||||
function _fun72678(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#72678, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9479:6, offset: 0x01d4e3e9, size: 152 bytes, params: 8, frame: 19
|
||||
let env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const channelStore = importDefault(1379) /* metro dependency 1379: ChannelStore */;
|
||||
const rtcConnectionStore = importDefault(4294) /* metro dependency 4294: RTCConnectionStore */;
|
||||
const env0_4 = (require(9277) /* metro dependency 9277: SecureFramesConstants */).END_TO_END_ENCRYPTION_DISABLED;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/rtc/hooks/useIsSecureFramesUIEnabled.tsx');
|
||||
exports.useIsSecureFramesUIEnabled = function({channelId}) {
|
||||
var env0_0 = channelId;
|
||||
return require(dependencyMap[3]).useStateFromStores([RTCConnectionStore, ChannelStore], _fun72680, [channelId]);
|
||||
};
|
||||
}
|
||||
|
||||
function useIsSecureFramesUIEnabled({channelId}) { // fn#72679, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9479:268, offset: 0x01d4e481, size: 88 bytes, params: 2, frame: 17
|
||||
return (require(566) /* metro dependency 566: flux */).useStateFromStores([RTCConnectionStore, ChannelStore],
|
||||
_fun72680, [channelId]);
|
||||
}
|
||||
|
||||
function _fun72680() { // fn#72680, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9479:360, offset: 0x01d4e4d9, size: 226 bytes, params: 1, frame: 18
|
||||
var r1;
|
||||
var r0;
|
||||
var r7;
|
||||
var version;
|
||||
var item3;
|
||||
var value4;
|
||||
var channel;
|
||||
var secureFramesState;
|
||||
const channelIdBinding = channelId;
|
||||
const value = environment.__proto__;
|
||||
const items2 = [RTCConnectionStore];
|
||||
items2[1] = ChannelStore;
|
||||
const value2 = undefined;
|
||||
const iterator = (items2 !== value2 ? items2 : [RTCConnectionStore, ChannelStore])[Symbol.iterator]();
|
||||
const iterator2 = iterator.next;
|
||||
let item2 = Reflect.apply(iterator2, iterator, []);
|
||||
let item = item2.value;
|
||||
item2 = item2.done ? undefined : iterator;
|
||||
const value3 = item2 === value2;
|
||||
const r5 = value3 ? value2 : item;
|
||||
if (value3) {
|
||||
r0 = item2;
|
||||
r1 = value3;
|
||||
r7 = value2;
|
||||
} else {
|
||||
item3 = Reflect.apply(iterator2, item2, []);
|
||||
item = item3.value;
|
||||
item3 = item3.done ? undefined : item2;
|
||||
value4 = item3 === value2;
|
||||
if (value4) {
|
||||
r0 = item3;
|
||||
r1 = value4;
|
||||
r7 = value2;
|
||||
} else {
|
||||
r0 = item3;
|
||||
r1 = value4;
|
||||
r7 = item;
|
||||
}
|
||||
}
|
||||
if (!r1) {
|
||||
r0.return();
|
||||
}
|
||||
const value5 = false;
|
||||
if (channelIdBinding == null) {
|
||||
r0 = value5;
|
||||
} else if (r5.getChannelId() !== channelIdBinding) {
|
||||
r0 = value5;
|
||||
} else {
|
||||
channel = r7.getChannel(channelIdBinding);
|
||||
if (channel == null) {
|
||||
r0 = value5;
|
||||
} else if (channel.isGuildStageVoice()) {
|
||||
r0 = value5;
|
||||
} else {
|
||||
secureFramesState = r5.getSecureFramesState();
|
||||
version = secureFramesState == null ? value2 : secureFramesState.version;
|
||||
r0 = version != null && version !== END_TO_END_ENCRYPTION_DISABLED;
|
||||
}
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,52 @@
|
||||
/* Metro module 9282; source: modules/rtc/hooks/useReadableSecureFramesFingerprint.tsx; dependencies: [31, 206, 9260, 2] */
|
||||
function _fun72608(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#72608, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9468:6, offset: 0x01d4b91d, size: 121 bytes, params: 8, frame: 18
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = importAll(31) /* metro dependency 31 */;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/rtc/hooks/useReadableSecureFramesFingerprint.tsx');
|
||||
exports.useReadableSecureFramesFingerprint = useReadableSecureFramesFingerprint;
|
||||
}
|
||||
|
||||
function useReadableSecureFramesFingerprint({fingerprintBase64, chunkSize, desiredLength}) { // fn#72609, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9468:233, offset: 0x01d4b996, size: 132 bytes, params: 2, frame: 16
|
||||
const value = env0_3.useMemo(_fun72610, [chunkSize, fingerprintBase64, desiredLength]);
|
||||
if (fingerprintBase64 != null) {
|
||||
if (fingerprintBase64 === '') {
|
||||
return value;
|
||||
}
|
||||
if (value == null) {
|
||||
throw new global.Error('[useReadableSecureFramesCode] Failed to parse base 64 code.');
|
||||
}
|
||||
}
|
||||
return value;
|
||||
}
|
||||
|
||||
function _fun72610() { // fn#72610, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9468:345, offset: 0x01d4ba1a, size: 219 bytes, params: 1, frame: 18
|
||||
var r1;
|
||||
const fingerprintBase64Binding = fingerprintBase64;
|
||||
const value2 = null;
|
||||
if (value2 == fingerprintBase64Binding) {
|
||||
return value2;
|
||||
}
|
||||
if (fingerprintBase64 === '') {
|
||||
return value2;
|
||||
}
|
||||
const defaultImport = importDefault(206) /* metro dependency 206 */;
|
||||
const value4 = defaultImport.toByteArray(fingerprintBase64);
|
||||
const libdaveModule = require(9260) /* metro dependency 9260: libdave */;
|
||||
const value5 = libdaveModule.generateDisplayableCode(value4, desiredLength, chunkSize);
|
||||
if (value2 == value5) {
|
||||
return value2;
|
||||
}
|
||||
const RegExp = global.RegExp;
|
||||
let regExp = new RegExp('.{1,' + chunkSize + '}', 'g');
|
||||
regExp = value5.match(regExp);
|
||||
if (value2 == regExp) {
|
||||
r1 = value2;
|
||||
} else {
|
||||
regExp = global.Array.from(regExp);
|
||||
r1 = regExp;
|
||||
}
|
||||
return r1;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,126 @@
|
||||
/* Metro module 9281; source: modules/rtc/hooks/useSecureFramesPairwiseFingerprint.tsx; dependencies: [5, 57, 31, 1226, 4259, 4294, 9277, 4291, 566, 44, 206, 9260, 2] */
|
||||
function _fun72593(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#72593, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9467:6, offset: 0x01d4b3eb, size: 245 bytes, params: 8, frame: 19
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = importDefault(5) /* metro dependency 5 */;
|
||||
const env0_4 = importDefault(57) /* metro dependency 57 */;
|
||||
const env0_5 = importAll(31) /* metro dependency 31 */;
|
||||
const authenticationStore = importDefault(1226) /* metro dependency 1226: AuthenticationStore */;
|
||||
const mediaEngineStore = importDefault(4259) /* metro dependency 4259: MediaEngineStore */;
|
||||
const rtcConnectionStore = importDefault(4294) /* metro dependency 4294: RTCConnectionStore */;
|
||||
const env0_9 = (require(9277) /* metro dependency 9277: SecureFramesConstants */).SECURE_FRAMES_GENERATE_FINGERPRINT_VERSION;
|
||||
const env0_10 = (require(4291) /* metro dependency 4291: Constants */).Features;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/rtc/hooks/useSecureFramesPairwiseFingerprint.tsx');
|
||||
exports.useSecureFramesPairwiseFingerprint = useSecureFramesPairwiseFingerprint;
|
||||
}
|
||||
|
||||
function useSecureFramesPairwiseFingerprint({userId}) { // fn#72594, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9467:356, offset: 0x01d4b4e0, size: 423 bytes, params: 2, frame: 26
|
||||
const id = (require(566) /* metro dependency 566: flux */).useStateFromStores([AuthenticationStore], function() {
|
||||
return AuthenticationStore.getId();
|
||||
});
|
||||
(importDefault(44) /* metro dependency 44 */)(id !== userId,
|
||||
'[useSecureFramesPairwiseFingerprint] Should not pass current user id.');
|
||||
const binding = env0_5;
|
||||
let useState = binding.useState;
|
||||
const value2 = Reflect.apply(useState, binding, [null]);
|
||||
const binding2 = env0_4;
|
||||
const value3 = binding2(value2, 2);
|
||||
const property = value3[0];
|
||||
const env0_3 = value3[1];
|
||||
useState = binding.useState;
|
||||
const value4 = binding2(Reflect.apply(useState, binding, [false]), 2);
|
||||
const property2 = value4[0];
|
||||
var env0_5 = value4[1];
|
||||
const secureFramesRosterMapEntry = (require(566) /* metro dependency 566: flux */).useStateFromStores([RTCConnectionStore],
|
||||
function() {
|
||||
return RTCConnectionStore.getSecureFramesRosterMapEntry(userId);
|
||||
});
|
||||
const secureFramesRosterMapEntry2 = (require(566) /* metro dependency 566: flux */).useStateFromStores([RTCConnectionStore],
|
||||
function() {
|
||||
return RTCConnectionStore.getSecureFramesRosterMapEntry(id);
|
||||
});
|
||||
value = binding.useCallback(_fun72598, []);
|
||||
value = binding.useCallback(_fun72599(), [value]);
|
||||
const env0_10 = binding.useRef(null);
|
||||
binding.useEffect(_fun72604, [id, secureFramesRosterMapEntry2, value, userId, secureFramesRosterMapEntry]);
|
||||
return binding.useMemo(_fun72607, [property, property2, secureFramesRosterMapEntry]);
|
||||
}
|
||||
|
||||
function _fun72598(a0) { // fn#72598, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9467:806, offset: 0x01d4b6bd, size: 64 bytes, params: 2, frame: 14
|
||||
const binding = env0_3;
|
||||
const defaultImport = importDefault(206) /* metro dependency 206 */;
|
||||
binding(defaultImport.fromByteArray(a0));
|
||||
env0_5(false);
|
||||
}
|
||||
|
||||
function _fun72599() { // fn#72599, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9467:867, offset: 0x01d4b6fd, size: 36 bytes, params: 1, frame: 12
|
||||
const env0_0 = env1_3(_fun72601);
|
||||
return _fun72603;
|
||||
}
|
||||
|
||||
function _fun72604() { // fn#72604, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9467:1250, offset: 0x01d4b847, size: 113 bytes, params: 1, frame: 16
|
||||
if (secureFramesRosterMapEntry != null && secureFramesRosterMapEntry != null && env0_10.current == null) {
|
||||
env0_5(true);
|
||||
env0_10.current = global.setTimeout(_fun72605, 0);
|
||||
}
|
||||
const env0_0 = env0_10.current;
|
||||
return function() {
|
||||
if (current != null) {
|
||||
global.clearTimeout(current);
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
function _fun72607() { // fn#72607, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9467:1418, offset: 0x01d4b8fb, size: 34 bytes, params: 1, frame: 3
|
||||
return {fingerprint: env0_2, userKey: secureFramesRosterMapEntry, loading: env0_4};
|
||||
}
|
||||
|
||||
function* _fun72601(a0, a1, a2, a3) { // fn#72601, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9467:887, offset: 0x01d4b72c, size: 236 bytes, params: 5, frame: 23
|
||||
var environment;
|
||||
var rTCConnection;
|
||||
if (true) {
|
||||
value = environment.__proto__.__proto__.__proto__;
|
||||
var binding = env3_7;
|
||||
var supports = binding.supports;
|
||||
var MLS_PAIRWISE_FINGERPRINTS = env3_10.MLS_PAIRWISE_FINGERPRINTS;
|
||||
if (Reflect.apply(supports, binding, [MLS_PAIRWISE_FINGERPRINTS])) {
|
||||
rTCConnection = env3_8.getRTCConnection();
|
||||
if (rTCConnection != null) {
|
||||
rTCConnection.getMLSPairwiseFingerprint(env3_9, a2, _fun72602);
|
||||
}
|
||||
} else {
|
||||
binding = env3_0;
|
||||
var value3 = binding(env3_2[11]);
|
||||
var generatePairwiseFingerprint = value3.generatePairwiseFingerprint;
|
||||
binding = env3_9;
|
||||
var Uint8Array = global.Uint8Array;
|
||||
var prototype = Uint8Array.prototype;
|
||||
value = Object.create(prototype, {constructor: {value: Uint8Array}});
|
||||
var uint8Array = new Uint8Array(a1);
|
||||
value = uint8Array instanceof Object ? uint8Array : value;
|
||||
Uint8Array = global.Uint8Array;
|
||||
prototype = Uint8Array.prototype;
|
||||
var value4 = Object.create(prototype, {constructor: {value: Uint8Array}});
|
||||
uint8Array = new Uint8Array(a3);
|
||||
yield Reflect.apply(generatePairwiseFingerprint, value3, [binding, value, a0,
|
||||
uint8Array instanceof Object ? uint8Array : value4, a2]);
|
||||
value = undefined;
|
||||
if (false) {
|
||||
return value;
|
||||
}
|
||||
RTCConnectionStore(value);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function _fun72605() { // fn#72605, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9467:1319, offset: 0x01d4b8b8, size: 31 bytes, params: 1, frame: 17
|
||||
return env1_9(id, secureFramesRosterMapEntry, userId, secureFramesRosterMapEntry);
|
||||
}
|
||||
|
||||
function _fun72602(a0) { // fn#72602, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9467:1021, offset: 0x01d4b818, size: 47 bytes, params: 2, frame: 12
|
||||
const value = environment.__proto__.__proto__.__proto__;
|
||||
const Uint8Array = global.Uint8Array;
|
||||
RTCConnectionStore(new Uint8Array(a0));
|
||||
}
|
||||
|
||||
@@ -0,0 +1,69 @@
|
||||
/* Metro module 14089; source: modules/rtc/hooks/useSecureFramesUserVerifiedKeys.tsx; dependencies: [9259, 566, 22, 2] */
|
||||
function _fun106745(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#106745, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14286:6, offset: 0x022e9040, size: 118 bytes, params: 8, frame: 19
|
||||
let env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const verifiedKeyStore = importDefault(9259) /* metro dependency 9259: VerifiedKeyStore */;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/rtc/hooks/useSecureFramesUserVerifiedKeys.tsx');
|
||||
exports.useSecureFramesUserVerifiedKeys = function(a0) {
|
||||
var env0_0 = a0;
|
||||
return require(dependencyMap[1]).useStateFromStoresArray([VerifiedKeyStore], _fun106747);
|
||||
};
|
||||
}
|
||||
|
||||
function useSecureFramesUserVerifiedKeys(a0) { // fn#106746, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14286:227, offset: 0x022e90b6, size: 67 bytes, params: 2, frame: 14
|
||||
const env0_0 = a0;
|
||||
return (require(566) /* metro dependency 566: flux */).useStateFromStoresArray([VerifiedKeyStore], _fun106747);
|
||||
}
|
||||
|
||||
function _fun106747() { // fn#106747, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14286:315, offset: 0x022e90f9, size: 110 bytes, params: 1, frame: 14
|
||||
var environment;
|
||||
let value = environment.__proto__;
|
||||
const defaultImport = importDefault(22) /* metro dependency 22 */;
|
||||
const getUserVerifiedKeys = VerifiedKeyStore.getUserVerifiedKeys;
|
||||
value = defaultImport(Reflect.apply(getUserVerifiedKeys, VerifiedKeyStore, [env0_0]));
|
||||
value = value.entries();
|
||||
value = value.map(function(a0) {
|
||||
var r0;
|
||||
var r1;
|
||||
var r3;
|
||||
var item3;
|
||||
var value3;
|
||||
var iterator = a0[Symbol.iterator]();
|
||||
var iterator2 = iterator.next;
|
||||
var item2 = Reflect.apply(iterator2, iterator, []);
|
||||
var item = item2.value;
|
||||
item2 = item2.done ? undefined : iterator;
|
||||
var value = undefined;
|
||||
var value2 = item2 === value;
|
||||
var r2 = value2 ? value : item;
|
||||
if (value2) {
|
||||
r0 = item2;
|
||||
r1 = value;
|
||||
r3 = value2;
|
||||
} else {
|
||||
item3 = Reflect.apply(iterator2, item2, []);
|
||||
item = item3.value;
|
||||
item3 = item3.done ? undefined : item2;
|
||||
value3 = item3 === value;
|
||||
if (value3) {
|
||||
r0 = item3;
|
||||
r1 = value;
|
||||
r3 = value3;
|
||||
} else {
|
||||
r0 = item3;
|
||||
r1 = item;
|
||||
r3 = value3;
|
||||
}
|
||||
}
|
||||
if (!r3) {
|
||||
r0.return();
|
||||
}
|
||||
return {verifiedKey: r2, timestamp: r1};
|
||||
});
|
||||
value = value.sortBy(function(a0) {
|
||||
return -1 * a0.timestamp;
|
||||
});
|
||||
return value.value();
|
||||
}
|
||||
|
||||
@@ -0,0 +1,38 @@
|
||||
/* Metro module 9287; source: modules/rtc/hooks/useSecureFramesUserVerifiedKeysCount.tsx; dependencies: [31, 9259, 9260, 566, 2] */
|
||||
function _fun72643(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#72643, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9473:6, offset: 0x01d4c884, size: 133 bytes, params: 8, frame: 18
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_2 = importAll(31) /* metro dependency 31 */;
|
||||
const verifiedKeyStore = importDefault(9259) /* metro dependency 9259: VerifiedKeyStore */;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/rtc/hooks/useSecureFramesUserVerifiedKeysCount.tsx');
|
||||
exports.useSecureFramesUserVerifiedKeysCount = useSecureFramesUserVerifiedKeysCount;
|
||||
}
|
||||
|
||||
function useSecureFramesUserVerifiedKeysCount({userId, keyToOmit}) { // fn#72644, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9473:247, offset: 0x01d4c909, size: 128 bytes, params: 2, frame: 17
|
||||
return (require(566) /* metro dependency 566: flux */).useStateFromStores([VerifiedKeyStore], _fun72646,
|
||||
[env0_2.useMemo(_fun72645, [keyToOmit]), userId]);
|
||||
}
|
||||
|
||||
function _fun72645() { // fn#72645, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9473:334, offset: 0x01d4c989, size: 85 bytes, params: 1, frame: 13
|
||||
if (keyToOmit == null) {
|
||||
return null;
|
||||
}
|
||||
const Uint8Array = global.Uint8Array;
|
||||
return (require(9260) /* metro dependency 9260: libdave */).serializeKey(new Uint8Array(keyToOmit));
|
||||
}
|
||||
|
||||
function _fun72646() { // fn#72646, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9473:463, offset: 0x01d4c9de, size: 80 bytes, params: 1, frame: 12
|
||||
var environment;
|
||||
var length;
|
||||
let value = environment.__proto__;
|
||||
value = VerifiedKeyStore.getUserVerifiedKeys(userId);
|
||||
if (value == null) {
|
||||
length = 0;
|
||||
} else {
|
||||
value = global.Object.keys(value);
|
||||
length = value.filter(_fun72647).length;
|
||||
}
|
||||
return length;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,18 @@
|
||||
/* Metro module 14087; source: modules/rtc/hooks/useSecureFramesVerifiedUsers.tsx; dependencies: [9259, 566, 2] */
|
||||
function _fun106728(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#106728, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14284:6, offset: 0x022e86bf, size: 114 bytes, params: 8, frame: 18
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const verifiedKeyStore = importDefault(9259) /* metro dependency 9259: VerifiedKeyStore */;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/rtc/hooks/useSecureFramesVerifiedUsers.tsx');
|
||||
exports.useSecureFramesVerifiedUserIds = function() {
|
||||
return require(dependencyMap[1]).useStateFromStoresArray([VerifiedKeyStore], _fun106730);
|
||||
};
|
||||
}
|
||||
|
||||
function useSecureFramesVerifiedUserIds() { // fn#106729, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14284:223, offset: 0x022e8731, size: 60 bytes, params: 1, frame: 13
|
||||
return (require(566) /* metro dependency 566: flux */).useStateFromStoresArray([VerifiedKeyStore], function() {
|
||||
return VerifiedKeyStore.getUserIds();
|
||||
});
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user