/* Metro module 10910; source: modules/messages/MessageUtils.tsx; dependencies: [1379, 1878, 5072, 2] */ import ChannelStore from '../../stores/ChannelStore.tsx'; /* Metro dependency 1379 */ import UserStore from '../../stores/UserStore.tsx'; /* Metro dependency 1878 */ import * as FileImportTrackerModule from '../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */ function _fun83608(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#83608, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11096:6, offset: 0x01f200a3, size: 145 bytes, params: 8, frame: 19 const env0_0 = require; const Object = global.Object; Object.defineProperty(exports, '__esModule', {value: true}); (FileImportTrackerModule).fileFinishedImporting('modules/messages/MessageUtils.tsx'); exports.canViewPotentiallyNSFWChannel = canViewPotentiallyNSFWChannel; exports.getGuildIdFromMessage = getGuildIdFromMessage; function canViewPotentiallyNSFWChannel(a0) { // fn#83609, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11096:215, offset: 0x01f20134, size: 87 bytes, params: 2, frame: 13 var value; const currentUser = UserStore.getCurrentUser(); const channel = ChannelStore.getChannel(a0); let r0 = currentUser != null && channel != null; if (r0) { value = require(5072) /* metro dependency 5072: AgeGateUtils */; value = !value.isChannelContentGated(channel); r0 = value; } return r0; } function getGuildIdFromMessage({channel_id}) { // fn#83610, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11096:384, offset: 0x01f2018b, size: 55 bytes, params: 2, frame: 13 return ChannelStore.getChannel(channel_id)?.guild_id ?? undefined; } } global.__d(_fun83608, 10910, [1379, 1878, 5072, 2]) /* metro module 10910, dependencies: [1379, 1878, 5072, 2] */;