decord/stable/source/utils/native/openChannelCallModalForChannelId.tsx
github-actions 57c2214117 chore: update source for stable 347.12
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4973.js (118.4 MB)
2026-09-29 21:26:22 +00:00

30 lines
1 KiB
TypeScript

// Module ID: 13209
// Function ID: 13210
// Name: openChannelCallModalForChannelId
// Dependencies: [2041, 8696, 4995, 2]
// Exports: default
// Module 13209 (openChannelCallModalForChannelId)
import PrivateChannelCallUtils from "PrivateChannelCallUtils" /* 4995 */;
import StageChannelModalActionCreators from "StageChannelModalActionCreators" /* 8696 */;
import ChannelStore from "ChannelStore" /* 2041 */;
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);
}
}
};