12 lines
531 B
TypeScript
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;
|
|
};
|