Files
discord-decomp/modules/private_channel_creation/maybeConvertPrivateChannel.tsx
T
2026-11-01 12:12:55 +02:00

12 lines
531 B
TypeScript

// Metro module 6040 (f6041).
import ChannelStore from "../../stores/ChannelStore";
import { FAKE_PLACEHOLDER_PRIVATE_CHANNEL_ID } from "../channel/FakePlaceholderPrivateChannel";
import ChannelActionCreators from "../../actions/ChannelActionCreators";
export default function maybeConvertPrivateChannel(a0) {
if (a0 !== FAKE_PLACEHOLDER_PRIVATE_CHANNEL_ID) {
return null;
}
const channel = ChannelStore.getChannel(a0);
return channel != null ? ChannelActionCreators.ensurePrivateChannel(channel.recipients) : null;
};