decord/source/modules/activities/utils/isVoiceEmbeddedActivity.tsx
github-actions ecf26fc058 chore: update source for alpha 347.2
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4823.js (118.4 MB)
2026-09-16 07:03:15 +00:00

42 lines
1.3 KiB
TypeScript

// Module ID: 9671
// Function ID: 9672
// Name: isVoiceEmbeddedActivity
// Dependencies: [502, 1958, 2012, 4657, 1095, 2]
// Exports: default
// Module 9671 (isVoiceEmbeddedActivity)
import ChannelTypes from "ChannelTypes" /* 1095 */;
import AuthenticationStore from "AuthenticationStore" /* 502 */;
import ChannelStore from "ChannelStore" /* 1958 */;
import SelectedChannelStore from "SelectedChannelStore" /* 2012 */;
import VoiceStateStore from "VoiceStateStore" /* 4657 */;
require = fn;
const size = fn(2);
const result = size.fileFinishedImporting("modules/activities/utils/isVoiceEmbeddedActivity.tsx");
export default function isVoiceEmbeddedActivity(arg0) {
let obj = arg1;
if (arg1 === undefined) {
obj = ChannelStore;
}
const channel = obj.getChannel(arg0);
let tmp3 = null != channel;
if (tmp3) {
let tmp6 = channel.type === ChannelTypes.ChannelTypes.GUILD_VOICE;
if (!tmp6) {
let isPrivateResult = channel.isPrivate();
if (isPrivateResult) {
let tmp8 = channel.id === tmp2;
if (!tmp8) {
const voiceStatesForChannel = VoiceStateStore.getVoiceStatesForChannel(channel.id);
tmp8 = null != voiceStatesForChannel[AuthenticationStore.getId(AuthenticationStore)];
}
isPrivateResult = tmp8;
}
tmp6 = isPrivateResult;
}
tmp3 = tmp6;
}
return tmp3;
};