// Module ID: 9568 // Function ID: 9569 // Name: openChannelCallModalForChannelId // Dependencies: [1957, 8421, 4781, 2] // Exports: default // Module 9568 (openChannelCallModalForChannelId) import PrivateChannelCallUtils from "PrivateChannelCallUtils" /* 4781 */; import StageChannelModalActionCreators from "StageChannelModalActionCreators" /* 8421 */; import ChannelStore from "ChannelStore" /* 1957 */; require = fn; const size = fn(2); const result = size.fileFinishedImporting("utils/native/openChannelCallModalForChannelId.tsx"); export default function openChannelCallModalForChannelId(arg0, arg1) { const channel = ChannelStore.getChannel(arg0); if (null != channel) { let isGuildStageVoiceResult = arg1; if (arg1) { isGuildStageVoiceResult = channel.isGuildStageVoice(); } if (isGuildStageVoiceResult) { isGuildStageVoiceResult = false === StageChannelModalActionCreators.connectToStage(channel); } if (!isGuildStageVoiceResult) { PrivateChannelCallUtils.openChannelCallModal(channel); } } };