41 lines
2.7 KiB
TypeScript
41 lines
2.7 KiB
TypeScript
/* Metro module 7721; source: modules/voice_chat/VoiceChatHooks.tsx; dependencies: [1226, 4297, 566, 2] */
|
|
import AuthenticationStore from '../../stores/AuthenticationStore.tsx'; /* Metro dependency 1226 */
|
|
import VoiceStateStore from '../../stores/VoiceStateStore.tsx'; /* Metro dependency 4297 */
|
|
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 */
|
|
|
|
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});
|
|
(FileImportTrackerModule).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 (FluxModule).useStateFromStores([VoiceStateStore, AuthenticationStore],
|
|
_fun61771);
|
|
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 voiceStateStoreBinding = VoiceStateStore;
|
|
const isInChannel = voiceStateStoreBinding.isInChannel;
|
|
const binding = env0_0;
|
|
const authenticationStoreBinding = AuthenticationStore;
|
|
const getId = authenticationStoreBinding.getId;
|
|
return Reflect.apply(isInChannel, voiceStateStoreBinding, [binding, Reflect.apply(getId, authenticationStoreBinding,
|
|
[])]);
|
|
}
|
|
|
|
}
|
|
|
|
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);
|
|
}
|
|
|
|
}
|
|
|
|
global.__d(_fun61769, 7721, [1226, 4297, 566, 2]) /* metro module 7721, dependencies: [1226, 4297, 566, 2] */;
|