decord/beta/source/utils/native/openChannelCallModalForChannelId.tsx
2026-10-01 14:13:23 +00:00

28 lines
982 B
TypeScript

// Module ID: 12443
// Function ID: 12444
// Name: openChannelCallModalForChannelId
// Dependencies: [2045, 7841, 5043, 2]
// Exports: default
// Module 12443 (openChannelCallModalForChannelId)
import PrivateChannelCallUtils from "PrivateChannelCallUtils" /* 5043 */;
import StageChannelModalActionCreators from "StageChannelModalActionCreators" /* 7841 */;
import ChannelStore from "ChannelStore" /* 2045 */;
import size from "module_2" /* 2 */;
const result = size.fileFinishedImporting("utils/native/openChannelCallModalForChannelId.tsx");
export default function openChannelCallModalForChannelId(arg0, arg1) {
const channel = ChannelStore.getChannel(arg0);
if (null != channel) {
let tmp = arg1 && channel.isGuildStageVoice();
if (tmp) {
const obj2 = StageChannelModalActionCreators;
tmp = false === obj2.connectToStage(channel);
}
if (!tmp) {
const obj3 = PrivateChannelCallUtils;
obj3.openChannelCallModal(channel);
}
}
};