Files
discord-decomp/sources/modules/private_channel_creation/maybeConvertPrivateChannel.tsx
T
2026-07-28 01:06:53 +03:00

34 lines
2.0 KiB
TypeScript

/* Metro module 7143; source: modules/private_channel_creation/maybeConvertPrivateChannel.tsx; dependencies: [1379, 5225, 4603, 2] */
import ChannelStore from '../../stores/ChannelStore.tsx'; /* Metro dependency 1379 */
import * as FileImportTrackerModule from '../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as FakePlaceholderPrivateChannelModule from '../channel/FakePlaceholderPrivateChannel.tsx'; /* Metro dependency 5225 */
function _fun57139(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#57139, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7321:6, offset: 0x013ddb1f, size: 116 bytes, params: 8, frame: 19
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
(FileImportTrackerModule).fileFinishedImporting('modules/private_channel_creation/maybeConvertPrivateChannel.tsx');
exports.default = maybeConvertPrivateChannel;
function maybeConvertPrivateChannel(a0) { // fn#57140, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7321:213, offset: 0x013ddb93, size: 104 bytes, params: 2, frame: 14
var r0;
var value;
const FAKE_PLACEHOLDER_PRIVATE_CHANNEL_ID = (FakePlaceholderPrivateChannelModule).FAKE_PLACEHOLDER_PRIVATE_CHANNEL_ID;
if (a0 !== FAKE_PLACEHOLDER_PRIVATE_CHANNEL_ID) {
return null;
}
const channel = ChannelStore.getChannel(a0);
const value3 = null;
if (value3 == channel) {
r0 = value3;
} else {
value = importDefault(4603) /* metro dependency 4603: ChannelActionCreators */;
value = value.ensurePrivateChannel(channel.recipients);
r0 = value;
}
return r0;
}
}
global.__d(_fun57139, 7143, [1379, 5225, 4603, 2]) /* metro module 7143, dependencies: [1379, 5225, 4603, 2] */;