Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4824.js (118.4 MB)
30 lines
1 KiB
TypeScript
30 lines
1 KiB
TypeScript
// Module ID: 9668
|
|
// Function ID: 9669
|
|
// Name: openChannelCallModalForChannelId
|
|
// Dependencies: [1958, 8514, 4846, 2]
|
|
// Exports: default
|
|
|
|
// Module 9668 (openChannelCallModalForChannelId)
|
|
import PrivateChannelCallUtils from "PrivateChannelCallUtils" /* 4846 */;
|
|
import StageChannelModalActionCreators from "StageChannelModalActionCreators" /* 8514 */;
|
|
import ChannelStore from "ChannelStore" /* 1958 */;
|
|
|
|
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);
|
|
}
|
|
}
|
|
};
|