This commit is contained in:
janisslsm committed 2026-11-01 12:12:55 +02:00
1 parent 1781d25a15
commit 732c0ad767
33051 files changed
+2591613 -3019689

No files matched your search

@@ -0,0 +1,26 @@
// 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;
};