decord/alpha/source/modules/activities/utils/isVoiceEmbeddedActivity.tsx

42 lines
1.3 KiB
TypeScript
Raw Normal View History

2026-10-09 10:00:15 +00:00
// Module ID: 10447
// Function ID: 10448
2026-07-20 16:05:17 +00:00
// Name: isVoiceEmbeddedActivity
2026-10-09 10:00:15 +00:00
// Dependencies: [502, 2064, 2115, 5112, 1106, 2]
2026-07-20 16:05:17 +00:00
// Exports: default
2026-10-09 10:00:15 +00:00
// Module 10447 (isVoiceEmbeddedActivity)
2026-10-03 08:58:59 +00:00
import ChannelTypes from "ChannelTypes" /* 1106 */;
import AuthenticationStore from "AuthenticationStore" /* 502 */;
2026-10-09 10:00:15 +00:00
import ChannelStore from "ChannelStore" /* 2064 */;
2026-10-08 09:57:35 +00:00
import SelectedChannelStore from "SelectedChannelStore" /* 2115 */;
2026-10-09 10:00:15 +00:00
import VoiceStateStore from "VoiceStateStore" /* 5112 */;
2026-10-03 08:58:59 +00:00
import size from "module_2" /* 2 */;
2026-07-23 10:11:24 +00:00
const result = size.fileFinishedImporting("modules/activities/utils/isVoiceEmbeddedActivity.tsx");
2026-07-20 16:05:17 +00:00
2026-07-29 08:29:29 +00:00
export default function isVoiceEmbeddedActivity(arg0) {
2026-07-20 16:05:17 +00:00
let obj = arg1;
if (arg1 === undefined) {
obj = ChannelStore;
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
const channel = obj.getChannel(arg0);
2026-07-20 16:05:17 +00:00
let tmp3 = null != channel;
if (tmp3) {
let tmp6 = channel.type === ChannelTypes.ChannelTypes.GUILD_VOICE;
2026-07-20 16:05:17 +00:00
if (!tmp6) {
2026-07-29 08:29:29 +00:00
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)];
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
isPrivateResult = tmp8;
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
tmp6 = isPrivateResult;
2026-07-20 16:05:17 +00:00
}
tmp3 = tmp6;
}
return tmp3;
};