decord/alpha/source/utils/native/openChannelCallModalForChannelId.tsx
github-actions 72019a2d0c chore: update source for alpha 348.4
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/05xxx/module_5014.js (118.4 MB)
2026-09-25 08:38:05 +00:00

30 lines
1 KiB
TypeScript

// Module ID: 12425
// Function ID: 12426
// Name: openChannelCallModalForChannelId
// Dependencies: [2044, 7833, 5036, 2]
// Exports: default
// Module 12425 (openChannelCallModalForChannelId)
import PrivateChannelCallUtils from "PrivateChannelCallUtils" /* 5036 */;
import StageChannelModalActionCreators from "StageChannelModalActionCreators" /* 7833 */;
import ChannelStore from "ChannelStore" /* 2044 */;
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);
}
}
};