// Module ID: 14611 // Function ID: 14612 // Name: toggleVoiceChannelChat // Dependencies: [1958, 4662, 4655, 4840, 2] // Exports: toggleVoiceChannelChat // Module 14611 (toggleVoiceChannelChat) import ChannelRTCActionCreatorsDefault from "ChannelRTCActionCreators" /* 4840 */; import ChannelStore from "ChannelStore" /* 1958 */; import RTCConnectionStore from "RTCConnectionStore" /* 4662 */; import ChannelRTCStore from "ChannelRTCStore" /* 4655 */; const size = fn(2); const result = size.fileFinishedImporting("modules/calls/toggleVoiceChannelChat.tsx"); export const toggleVoiceChannelChat = function toggleVoiceChannelChat(open) { if (RTCConnectionStore.isConnected()) { const channelId = obj.getChannelId(); if (null == channelId) { return null; } else { const channel = ChannelStore.getChannel(channelId); if (null != channel) { if (channel.isGuildVoice()) { let tmp3 = open; if (open == null) { tmp3 = !ChannelRTCStore.getChatOpen(channelId); } ChannelRTCActionCreatorsDefault.updateChatOpen(channelId, tmp3); const obj2 = { channelId, chatOpen: tmp3 }; return obj2; } } return null; } } else { return null; } obj = RTCConnectionStore; };