// Module ID: 13178 // Function ID: 13179 // Name: openChannelCallModalForChannelId // Dependencies: [2041, 8663, 4963, 2] // Exports: default // Module 13178 (openChannelCallModalForChannelId) import PrivateChannelCallUtils from "PrivateChannelCallUtils" /* 4963 */; import StageChannelModalActionCreators from "StageChannelModalActionCreators" /* 8663 */; import ChannelStore from "ChannelStore" /* 2041 */; 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); } } };