2026-09-15 14:23:42 +00:00
|
|
|
// Module ID: 7859
|
|
|
|
|
// Function ID: 7860
|
2026-07-20 16:05:17 +00:00
|
|
|
// Name: maybeConvertPrivateChannel
|
2026-09-15 14:23:42 +00:00
|
|
|
// Dependencies: [1958, 7328, 4652, 2]
|
2026-07-20 16:05:17 +00:00
|
|
|
// Exports: default
|
|
|
|
|
|
2026-09-15 14:23:42 +00:00
|
|
|
// Module 7859 (maybeConvertPrivateChannel)
|
|
|
|
|
import ChannelActionCreatorsDefault from "ChannelActionCreators" /* 4652 */;
|
|
|
|
|
import FakePlaceholderPrivateChannel from "FakePlaceholderPrivateChannel" /* 7328 */;
|
|
|
|
|
import ChannelStore from "ChannelStore" /* 1958 */;
|
2026-07-23 10:11:24 +00:00
|
|
|
|
2026-09-10 05:38:07 +00:00
|
|
|
require = fn;
|
|
|
|
|
const size = fn(2);
|
|
|
|
|
const result = size.fileFinishedImporting("modules/private_channel_creation/maybeConvertPrivateChannel.tsx");
|
2026-07-20 16:05:17 +00:00
|
|
|
|
2026-07-29 08:29:29 +00:00
|
|
|
export default function maybeConvertPrivateChannel(arg0) {
|
2026-09-10 05:38:07 +00:00
|
|
|
if (arg0 !== FakePlaceholderPrivateChannel.FAKE_PLACEHOLDER_PRIVATE_CHANNEL_ID) {
|
2026-07-20 16:05:17 +00:00
|
|
|
return null;
|
|
|
|
|
} else {
|
2026-09-10 05:38:07 +00:00
|
|
|
const channel = ChannelStore.getChannel(arg0);
|
2026-07-20 16:05:17 +00:00
|
|
|
let ensurePrivateChannelResult = null;
|
|
|
|
|
if (null != channel) {
|
2026-09-10 05:38:07 +00:00
|
|
|
ensurePrivateChannelResult = ChannelActionCreatorsDefault.ensurePrivateChannel(channel.recipients);
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
|
|
|
|
return ensurePrivateChannelResult;
|
|
|
|
|
}
|
|
|
|
|
};
|