decord/alpha/source/utils/native/openChannelCallModalForChannelId.tsx

31 lines
1 KiB
TypeScript
Raw Normal View History

// Module ID: 12655
// Function ID: 12656
2026-07-20 16:05:17 +00:00
// Name: openChannelCallModalForChannelId
// Dependencies: [2044, 8025, 5052, 2]
2026-07-20 16:05:17 +00:00
// Exports: default
// Module 12655 (openChannelCallModalForChannelId)
import PrivateChannelCallUtils from "PrivateChannelCallUtils" /* 5052 */;
import StageChannelModalActionCreators from "StageChannelModalActionCreators" /* 8025 */;
import ChannelStore from "ChannelStore" /* 2044 */;
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
}
}
};