decord/stable/source/utils/native/openChannelCallModalForChannelId.tsx
github-actions e2bc0408ee chore: update source for stable 346.13
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4821.js (118.4 MB)
2026-09-22 22:11:40 +00:00

30 lines
1 KiB
TypeScript

// Module ID: 9666
// Function ID: 9667
// Name: openChannelCallModalForChannelId
// Dependencies: [1957, 8511, 4843, 2]
// Exports: default
// Module 9666 (openChannelCallModalForChannelId)
import PrivateChannelCallUtils from "PrivateChannelCallUtils" /* 4843 */;
import StageChannelModalActionCreators from "StageChannelModalActionCreators" /* 8511 */;
import ChannelStore from "ChannelStore" /* 1957 */;
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);
}
}
};