2026-09-21 19:31:18 +00:00
|
|
|
// Module ID: 13179
|
|
|
|
|
// Function ID: 13180
|
2026-09-18 19:45:33 +00:00
|
|
|
// Name: openChannelCallModalForChannelId
|
2026-09-21 19:31:18 +00:00
|
|
|
// Dependencies: [2045, 8669, 4965, 2]
|
2026-09-18 19:45:33 +00:00
|
|
|
// Exports: default
|
|
|
|
|
|
2026-09-21 19:31:18 +00:00
|
|
|
// Module 13179 (openChannelCallModalForChannelId)
|
|
|
|
|
import PrivateChannelCallUtils from "PrivateChannelCallUtils" /* 4965 */;
|
|
|
|
|
import StageChannelModalActionCreators from "StageChannelModalActionCreators" /* 8669 */;
|
|
|
|
|
import ChannelStore from "ChannelStore" /* 2045 */;
|
2026-09-18 19:45:33 +00:00
|
|
|
|
|
|
|
|
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);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
};
|