34 lines
2.2 KiB
TypeScript
34 lines
2.2 KiB
TypeScript
/* Metro module 7721; source: modules/voice_chat/VoiceChatHooks.tsx; dependencies: [1226, 4297, 566, 2] */
|
|
function _fun61769(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#61769, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7899:6, offset: 0x01b4a3e2, size: 145 bytes, params: 8, frame: 20
|
|
let env0_0 = require;
|
|
const closure = function(a0) {
|
|
var env0_0 = a0;
|
|
return require(dependencyMap[2]).useStateFromStores([VoiceStateStore, AuthenticationStore], _fun61771);
|
|
};
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
const authenticationStore = importDefault(1226) /* metro dependency 1226: AuthenticationStore */;
|
|
const voiceStateStore = importDefault(4297) /* metro dependency 4297: VoiceStateStore */;
|
|
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/voice_chat/VoiceChatHooks.tsx');
|
|
exports.useIsConnectedToVoiceChannel = useIsConnectedToVoiceChannel;
|
|
exports.useIsConnectedToVoiceChannelForId = closure;
|
|
}
|
|
|
|
function useIsConnectedToVoiceChannelForId(a0) { // fn#61770, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7899:116, offset: 0x01b4a473, size: 72 bytes, params: 2, frame: 15
|
|
const env0_0 = a0;
|
|
return (require(566) /* metro dependency 566: flux */).useStateFromStores([VoiceStateStore, AuthenticationStore],
|
|
_fun61771);
|
|
}
|
|
|
|
function useIsConnectedToVoiceChannel(a0) { // fn#61772, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7899:338, offset: 0x01b4a4e5, size: 35 bytes, params: 2, frame: 13
|
|
return useIsConnectedToVoiceChannelForId(a0?.id);
|
|
}
|
|
|
|
function _fun61771() { // fn#61771, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7899:203, offset: 0x01b4a4bb, size: 42 bytes, params: 1, frame: 14
|
|
const isInChannel = VoiceStateStore.isInChannel;
|
|
const binding = env0_0;
|
|
const getId = AuthenticationStore.getId;
|
|
return Reflect.apply(isInChannel, VoiceStateStore, [binding, Reflect.apply(getId, AuthenticationStore, [])]);
|
|
}
|
|
|