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

29 lines
982 B
TypeScript
Raw Normal View History

2026-10-07 22:43:51 +00:00
// Module ID: 12695
// Function ID: 12696
// Name: openChannelCallModalForChannelId
2026-10-07 22:43:51 +00:00
// Dependencies: [2051, 8069, 5097, 2]
// Exports: default
2026-10-07 22:43:51 +00:00
// Module 12695 (openChannelCallModalForChannelId)
import PrivateChannelCallUtils from "PrivateChannelCallUtils" /* 5097 */;
import StageChannelModalActionCreators from "StageChannelModalActionCreators" /* 8069 */;
2026-10-02 13:37:24 +00:00
import ChannelStore from "ChannelStore" /* 2051 */;
2026-10-01 14:13:23 +00:00
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) {
2026-10-01 14:13:23 +00:00
let tmp = arg1 && channel.isGuildStageVoice();
if (tmp) {
const obj2 = StageChannelModalActionCreators;
tmp = false === obj2.connectToStage(channel);
}
2026-10-01 14:13:23 +00:00
if (!tmp) {
const obj3 = PrivateChannelCallUtils;
obj3.openChannelCallModal(channel);
}
}
};