32 lines
2.3 KiB
TypeScript
32 lines
2.3 KiB
TypeScript
/* Metro module 9810; source: modules/media_channel/useShouldHideMediaOptions.tsx; dependencies: [1379, 1386, 632, 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 UseStateFromStoresModule from '../../external/discord_common/js/packages/flux/useStateFromStores.tsx'; /* Metro dependency 632 */
|
|
import * as ChannelConstantsModule from '../channel/ChannelConstants.tsx'; /* Metro dependency 1386 */
|
|
|
|
function _fun76836(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#76836, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9996:6, offset: 0x01de6ef1, size: 136 bytes, params: 8, frame: 18
|
|
const env0_0 = require;
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
(FileImportTrackerModule).fileFinishedImporting('modules/media_channel/useShouldHideMediaOptions.tsx');
|
|
exports.default = useShouldHideMediaOptions;
|
|
function useShouldHideMediaOptions(a0) { // fn#76837, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9996:224, offset: 0x01de6f79, size: 102 bytes, params: 2, frame: 16
|
|
const env0_0 = a0;
|
|
const value2 = undefined;
|
|
const value3 = (UseStateFromStoresModule).useStateFromStores([ChannelStore],
|
|
_fun76838);
|
|
return (value3 == null ? value2 : value3.hasFlag(ChannelFlags.HIDE_MEDIA_DOWNLOAD_OPTIONS)) === true;
|
|
function _fun76838() { // fn#76838, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9996:300, offset: 0x01de6fdf, size: 96 bytes, params: 1, frame: 14
|
|
const value = environment.__proto__;
|
|
const channel = ChannelStore.getChannel(env0_0);
|
|
const value4 = null;
|
|
const value5 = undefined;
|
|
return value4 != (value4 == channel ? value5 : channel.parent_id) && channel.isForumPost() ? ChannelStore.getChannel(value4 == channel ? value5 : channel.parent_id) : value4;
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
global.__d(_fun76836, 9810, [1379, 1386, 632, 2]) /* metro module 9810, dependencies: [1379, 1386, 632, 2] */;
|