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

+24
View File
@@ -0,0 +1,24 @@
// Metro module 13568 (f13569).
import ChannelStore from "../../stores/ChannelStore";
import RTCConnectionStore from "../../stores/RTCConnectionStore";
import ChannelRTCStore from "./ChannelRTCStore";
import ChannelRTCActionCreators from "../../actions/ChannelRTCActionCreators";
export function toggleVoiceChannelChat(a0) {
if (RTCConnectionStore.isConnected()) {
const channelId = RTCConnectionStore.getChannelId();
if (channelId == null) {
return null;
}
const channel = ChannelStore.getChannel(channelId);
if (channel != null && channel.isGuildVoice()) {
const chatOpen = a0 == null ? !ChannelRTCStore.getChatOpen(channelId) : a0;
ChannelRTCActionCreators.updateChatOpen(channelId, chatOpen);
return {
channelId,
chatOpen
};
}
return null;
}
return null;
}