2026-09-10 19:12:31 +00:00
|
|
|
// Module ID: 9606
|
|
|
|
|
// Function ID: 9607
|
2026-07-20 16:05:17 +00:00
|
|
|
// Name: openChannelCallModalForChannelId
|
2026-09-10 19:12:31 +00:00
|
|
|
// Dependencies: [1957, 8458, 4812, 2]
|
2026-07-20 16:05:17 +00:00
|
|
|
// Exports: default
|
|
|
|
|
|
2026-09-10 19:12:31 +00:00
|
|
|
// Module 9606 (openChannelCallModalForChannelId)
|
|
|
|
|
import PrivateChannelCallUtils from "PrivateChannelCallUtils" /* 4812 */;
|
|
|
|
|
import StageChannelModalActionCreators from "StageChannelModalActionCreators" /* 8458 */;
|
2026-09-10 05:38:07 +00:00
|
|
|
import ChannelStore from "ChannelStore" /* 1957 */;
|
2026-07-23 10:11:24 +00:00
|
|
|
|
2026-09-10 05:38:07 +00:00
|
|
|
require = fn;
|
|
|
|
|
const size = fn(2);
|
|
|
|
|
const result = size.fileFinishedImporting("utils/native/openChannelCallModalForChannelId.tsx");
|
2026-07-20 16:05:17 +00:00
|
|
|
|
2026-07-29 08:29:29 +00:00
|
|
|
export default function openChannelCallModalForChannelId(arg0, arg1) {
|
2026-09-10 05:38:07 +00:00
|
|
|
const channel = ChannelStore.getChannel(arg0);
|
2026-07-20 16:05:17 +00:00
|
|
|
if (null != channel) {
|
2026-07-29 08:29:29 +00:00
|
|
|
let isGuildStageVoiceResult = arg1;
|
|
|
|
|
if (arg1) {
|
2026-07-20 16:05:17 +00:00
|
|
|
isGuildStageVoiceResult = channel.isGuildStageVoice();
|
|
|
|
|
}
|
|
|
|
|
if (isGuildStageVoiceResult) {
|
2026-09-10 05:38:07 +00:00
|
|
|
isGuildStageVoiceResult = false === StageChannelModalActionCreators.connectToStage(channel);
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
|
|
|
|
if (!isGuildStageVoiceResult) {
|
2026-09-10 05:38:07 +00:00
|
|
|
PrivateChannelCallUtils.openChannelCallModal(channel);
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
};
|