decord/source/modules/private_channel_creation/maybeConvertPrivateChannel.tsx

28 lines
991 B
TypeScript
Raw Normal View History

// Module ID: 7768
// Function ID: 7769
2026-07-20 16:05:17 +00:00
// Name: maybeConvertPrivateChannel
// Dependencies: [1957, 7235, 4587, 2]
2026-07-20 16:05:17 +00:00
// Exports: default
// Module 7768 (maybeConvertPrivateChannel)
import ChannelActionCreatorsDefault from "ChannelActionCreators" /* 4587 */;
import FakePlaceholderPrivateChannel from "FakePlaceholderPrivateChannel" /* 7235 */;
import ChannelStore from "ChannelStore" /* 1957 */;
2026-07-23 10:11:24 +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) {
if (arg0 !== FakePlaceholderPrivateChannel.FAKE_PLACEHOLDER_PRIVATE_CHANNEL_ID) {
2026-07-20 16:05:17 +00:00
return null;
} else {
const channel = ChannelStore.getChannel(arg0);
2026-07-20 16:05:17 +00:00
let ensurePrivateChannelResult = null;
if (null != channel) {
ensurePrivateChannelResult = ChannelActionCreatorsDefault.ensurePrivateChannel(channel.recipients);
2026-07-20 16:05:17 +00:00
}
return ensurePrivateChannelResult;
}
};