decord/source/utils/native/openChannelCallModalForChannelId.tsx

31 lines
1 KiB
TypeScript
Raw Normal View History

// Module ID: 9629
// Function ID: 9630
2026-07-20 16:05:17 +00:00
// Name: openChannelCallModalForChannelId
// Dependencies: [1957, 8481, 4814, 2]
2026-07-20 16:05:17 +00:00
// Exports: default
// Module 9629 (openChannelCallModalForChannelId)
import PrivateChannelCallUtils from "PrivateChannelCallUtils" /* 4814 */;
import StageChannelModalActionCreators from "StageChannelModalActionCreators" /* 8481 */;
import ChannelStore from "ChannelStore" /* 1957 */;
2026-07-23 10:11:24 +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) {
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) {
isGuildStageVoiceResult = false === StageChannelModalActionCreators.connectToStage(channel);
2026-07-20 16:05:17 +00:00
}
if (!isGuildStageVoiceResult) {
PrivateChannelCallUtils.openChannelCallModal(channel);
2026-07-20 16:05:17 +00:00
}
}
};