55 lines
2.4 KiB
TypeScript
55 lines
2.4 KiB
TypeScript
/* Metro module 8102; source: modules/activities/utils/isVoiceEmbeddedActivity.tsx; dependencies: [1226, 1379, 1934, 4297, 677, 2] */
|
|
function _fun64960(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#64960, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8287:6, offset: 0x01bbac36, size: 160 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 channelStore = importDefault(1379) /* metro dependency 1379: ChannelStore */;
|
|
const selectedChannelStore = importDefault(1934) /* metro dependency 1934: SelectedChannelStore */;
|
|
const voiceStateStore = importDefault(4297) /* metro dependency 4297: VoiceStateStore */;
|
|
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/activities/utils/isVoiceEmbeddedActivity.tsx');
|
|
exports.default = isVoiceEmbeddedActivity;
|
|
}
|
|
|
|
function isVoiceEmbeddedActivity(a0) { // fn#64961, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8287:232, offset: 0x01bbacd6, size: 196 bytes, params: 2, frame: 18
|
|
var r2;
|
|
var r0;
|
|
var value6;
|
|
var isPrivate2;
|
|
var value8;
|
|
let value = a1;
|
|
const value2 = a2;
|
|
let r3 = value !== undefined ? value : ChannelStore;
|
|
let r1 = value2 !== undefined ? value2 : SelectedChannelStore;
|
|
value = r3.getChannel(a0);
|
|
const voiceChannelId = r1.getVoiceChannelId();
|
|
const value4 = value != null;
|
|
if (value4) {
|
|
value6 = value.type === (require(677) /* metro dependency 677: ChannelTypes */).ChannelTypes.GUILD_VOICE;
|
|
if (value6) {
|
|
r1 = value6;
|
|
} else {
|
|
isPrivate2 = value.isPrivate();
|
|
if (isPrivate2) {
|
|
value8 = value.id === voiceChannelId;
|
|
if (value8) {
|
|
r3 = value8;
|
|
} else {
|
|
value = VoiceStateStore.getVoiceStatesForChannel(value.id);
|
|
value = value[AuthenticationStore.getId()] != null;
|
|
r3 = value;
|
|
}
|
|
r2 = r3;
|
|
} else {
|
|
r2 = !!isPrivate2;
|
|
}
|
|
r1 = r2;
|
|
}
|
|
r0 = r1;
|
|
} else {
|
|
r0 = value4;
|
|
}
|
|
return r0;
|
|
}
|
|
|