28 lines
982 B
TypeScript
28 lines
982 B
TypeScript
// Module ID: 11338
|
|
// Function ID: 11339
|
|
// Name: openChannelCallModalForChannelId
|
|
// Dependencies: [2065, 7492, 7481, 2]
|
|
// Exports: default
|
|
|
|
// Module 11338 (openChannelCallModalForChannelId)
|
|
import PrivateChannelCallUtils from "PrivateChannelCallUtils" /* 7481 */;
|
|
import StageChannelModalActionCreators from "StageChannelModalActionCreators" /* 7492 */;
|
|
import ChannelStore from "ChannelStore" /* 2065 */;
|
|
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);
|
|
}
|
|
}
|
|
};
|