// Metro module 12026 (f12027). import { isTextChannel } from "../../../records/ChannelRecord"; import ChannelStore from "../../../stores/ChannelStore"; import VoiceStateStore from "../../../stores/VoiceStateStore"; export default function getActivityChannelId({ channelId, userId, activity }) { let r12; const channel = ChannelStore.getChannel(channelId); const session_id = activity?.session_id; L10: { r12 = channelId; if (session_id != null) { if (channel != null) { const isTextChannel2 = isTextChannel(channel.type); r12 = channelId; if (isTextChannel2) { break L10; } } r12 = VoiceStateStore.getVoiceStateForSession(userId, activity?.session_id)?.channelId; } } if (r12 == null) { r12 = void 0; } return r12; };