// Module ID: 14355 // Function ID: 14356 // Name: toggleVoiceChannelChat // Dependencies: [2051, 4913, 4906, 5091, 2] // Exports: toggleVoiceChannelChat // Module 14355 (toggleVoiceChannelChat) import ChannelRTCActionCreatorsDefault from "ChannelRTCActionCreators" /* 5091 */; import ChannelStore from "ChannelStore" /* 2051 */; import RTCConnectionStore from "RTCConnectionStore" /* 4913 */; import ChannelRTCStore from "ChannelRTCStore" /* 4906 */; import size from "module_2" /* 2 */; const result = size.fileFinishedImporting("modules/calls/toggleVoiceChannelChat.tsx"); export const toggleVoiceChannelChat = function toggleVoiceChannelChat(open) { const obj = RTCConnectionStore; 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); } const obj3 = ChannelRTCActionCreatorsDefault; obj3.updateChatOpen(channelId, tmp3); return { channelId, chatOpen: tmp3 }; } } return null; } } else { return null; } };