decord/alpha/source/utils/native/openChannelCallModalForChannelId.tsx

29 lines
982 B
TypeScript
Raw Normal View History

2026-10-10 08:08:14 +00:00
// Module ID: 11338
// Function ID: 11339
2026-07-20 16:05:17 +00:00
// Name: openChannelCallModalForChannelId
2026-10-10 08:08:14 +00:00
// Dependencies: [2065, 7492, 7481, 2]
2026-07-20 16:05:17 +00:00
// Exports: default
2026-10-10 08:08:14 +00:00
// Module 11338 (openChannelCallModalForChannelId)
2026-10-09 10:00:15 +00:00
import PrivateChannelCallUtils from "PrivateChannelCallUtils" /* 7481 */;
import StageChannelModalActionCreators from "StageChannelModalActionCreators" /* 7492 */;
2026-10-10 08:08:14 +00:00
import ChannelStore from "ChannelStore" /* 2065 */;
2026-10-03 08:58:59 +00:00
import size from "module_2" /* 2 */;
2026-07-23 10:11:24 +00:00
const result = size.fileFinishedImporting("utils/native/openChannelCallModalForChannelId.tsx");
2026-07-20 16:05:17 +00:00
2026-07-29 08:29:29 +00:00
export default function openChannelCallModalForChannelId(arg0, arg1) {
const channel = ChannelStore.getChannel(arg0);
2026-07-20 16:05:17 +00:00
if (null != channel) {
2026-10-03 08:58:59 +00:00
let tmp = arg1 && channel.isGuildStageVoice();
if (tmp) {
const obj2 = StageChannelModalActionCreators;
tmp = false === obj2.connectToStage(channel);
2026-07-20 16:05:17 +00:00
}
2026-10-03 08:58:59 +00:00
if (!tmp) {
const obj3 = PrivateChannelCallUtils;
obj3.openChannelCallModal(channel);
2026-07-20 16:05:17 +00:00
}
}
};