decord/source/modules/private_channel_creation/maybeConvertPrivateChannel.tsx
github-actions da5b5e5efe chore: update source for alpha 346.6
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4821.js (118.4 MB)
2026-09-12 13:45:10 +00:00

27 lines
991 B
TypeScript

// Module ID: 7856
// Function ID: 7857
// Name: maybeConvertPrivateChannel
// Dependencies: [1957, 7324, 4649, 2]
// Exports: default
// Module 7856 (maybeConvertPrivateChannel)
import ChannelActionCreatorsDefault from "ChannelActionCreators" /* 4649 */;
import FakePlaceholderPrivateChannel from "FakePlaceholderPrivateChannel" /* 7324 */;
import ChannelStore from "ChannelStore" /* 1957 */;
require = fn;
const size = fn(2);
const result = size.fileFinishedImporting("modules/private_channel_creation/maybeConvertPrivateChannel.tsx");
export default function maybeConvertPrivateChannel(arg0) {
if (arg0 !== FakePlaceholderPrivateChannel.FAKE_PLACEHOLDER_PRIVATE_CHANNEL_ID) {
return null;
} else {
const channel = ChannelStore.getChannel(arg0);
let ensurePrivateChannelResult = null;
if (null != channel) {
ensurePrivateChannelResult = ChannelActionCreatorsDefault.ensurePrivateChannel(channel.recipients);
}
return ensurePrivateChannelResult;
}
};