Files
discord-decomp/modules/go_live/utils/transitionToStream.native.tsx
T
2026-11-01 12:12:55 +02:00

14 lines
603 B
TypeScript

// Metro module 4394 (f4395).
import ChannelStore from "../../../stores/ChannelStore";
import ActionSheetActionCreators from "../../action_sheet/native/ActionSheetActionCreators";
import ModalActionCreators from "../../../actions/ModalActionCreators";
import { openGuildVoiceModal } from "../../../utils/native/PrivateChannelCallUtils";
export default function transitionToStream(a0) {
const channel = ChannelStore.getChannel(a0.channelId);
if (channel != null) {
ActionSheetActionCreators.hideActionSheet();
ModalActionCreators.popAll();
openGuildVoiceModal(channel, "Go Live");
}
};