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

976 lines
62 KiB
TypeScript

/* Metro module 11321; source: modules/messages/native/Messages.tsx; dependencies: [57, 31, 4502, 1378, 6874, 4234, 10557, 4885, 4606, 9858, 6540, 4107, 4822, 6773, 8200, 8183, 4117, 7069, 8358, 8057, 10604, 8185, 8432, 7065, 11322, 7074, 4833, 9865, 3786, 6898, 1949, 1310, 1226, 5109, 1379, 7075, 8450, 1945, 1867, 4798, 4097, 4814, 3784, 4396, 4294, 4605, 4296, 7223, 1878, 4297, 4279, 10581, 4300, 661, 1880, 33, 566, 22, 628, 6772, 1360, 3829, 11323, 11326, 11330, 10563, 9483, 7063, 3802, 8214, 6274, 11291, 11292, 8229, 7035, 11333, 4022, 9867, 9764, 9854, 11334, 4813, 9855, 8357, 11335, 11338, 8372, 9835, 4116, 10572, 11340, 7704, 11341, 2] */
import Module00057 from '../../../by-id/module-00057.js'; /* Metro dependency 57 */
import AuthenticationStore from '../../../stores/AuthenticationStore.tsx'; /* Metro dependency 1226 */
import ThemeStore from '../../user_settings/ThemeStore.tsx'; /* Metro dependency 1310 */
import EmbeddedActivitiesStore from '../../activities/EmbeddedActivitiesStore.tsx'; /* Metro dependency 1378 */
import ChannelStore from '../../../stores/ChannelStore.tsx'; /* Metro dependency 1379 */
import GuildStore from '../../../stores/GuildStore.tsx'; /* Metro dependency 1867 */
import UserStore from '../../../stores/UserStore.tsx'; /* Metro dependency 1878 */
import GuildMemberStore from '../../../stores/GuildMemberStore.tsx'; /* Metro dependency 1945 */
import LocaleStore from '../../user_settings/LocaleStore.tsx'; /* Metro dependency 1949 */
import PermissionStore from '../../../stores/PermissionStore.tsx'; /* Metro dependency 3784 */
import JoinedThreadsStore from '../../threads/JoinedThreadsStore.tsx'; /* Metro dependency 3786 */
import UseKeyboardType from '../../keyboard/native/useKeyboardType.tsx'; /* Metro dependency 4022 */
import InviteStore from '../../../stores/InviteStore.tsx'; /* Metro dependency 4097 */
import ExperimentStore from '../../experiments/ExperimentStore.tsx'; /* Metro dependency 4107 */
import GuildScheduledEventStore from '../../guild_scheduled_events/GuildScheduledEventStore.tsx'; /* Metro dependency 4117 */
import ApplicationStore from '../../applications/ApplicationStore.tsx'; /* Metro dependency 4234 */
import SKUStore from '../../../stores/game_store/SKUStore.tsx'; /* Metro dependency 4279 */
import RTCConnectionStore from '../../../stores/RTCConnectionStore.tsx'; /* Metro dependency 4294 */
import SessionsStore from '../../../stores/SessionsStore.tsx'; /* Metro dependency 4296 */
import VoiceStateStore from '../../../stores/VoiceStateStore.tsx'; /* Metro dependency 4297 */
import SortedVoiceStateStore from '../../../stores/views/SortedVoiceStateStore.tsx'; /* Metro dependency 4300 */
import PresenceStore from '../../../stores/PresenceStore.tsx'; /* Metro dependency 4396 */
import AccessibilityStore from '../../a11y/AccessibilityStore.tsx'; /* Metro dependency 4502 */
import ReadStateStore from '../../../stores/ReadStateStore.tsx'; /* Metro dependency 4605 */
import ChannelRTCStore from '../../calls/ChannelRTCStore.tsx'; /* Metro dependency 4606 */
import GuildVerificationStore from '../../../stores/GuildVerificationStore.tsx'; /* Metro dependency 4798 */
import MessageStore from '../../../stores/MessageStore.tsx'; /* Metro dependency 4814 */
import ExplicitMediaStore from '../../explicit_media_redaction/ExplicitMediaStore.tsx'; /* Metro dependency 4822 */
import ReferencedMessageStore from '../../replies/ReferencedMessageStore.tsx'; /* Metro dependency 4833 */
import CacheStore from '../../cache/CacheStore.tsx'; /* Metro dependency 4885 */
import AuthorizedAppsStore from '../../../stores/AuthorizedAppsStore.tsx'; /* Metro dependency 5109 */
import EmojiStore from '../../emojis/EmojiStore.tsx'; /* Metro dependency 6540 */
import ApplicationDirectoryApplicationsStore from '../../global_discovery_apps/stores/ApplicationDirectoryApplicationsStore.tsx'; /* Metro dependency 6773 */
import ApplicationAssetsStore from '../../applications/ApplicationAssetsStore.tsx'; /* Metro dependency 6874 */
import ThreadMessageStore from '../../threads/ThreadMessageStore.tsx'; /* Metro dependency 6898 */
import ReferralTrialStore from '../../premium/ReferralTrialStore.tsx'; /* Metro dependency 7065 */
import GuildTemplateStore from '../../guild_templates/GuildTemplateStore.tsx'; /* Metro dependency 7069 */
import PendingReplyStore from '../../replies/PendingReplyStore.tsx'; /* Metro dependency 7074 */
import EditMessageStore from '../../../stores/EditMessageStore.tsx'; /* Metro dependency 7075 */
import UploadStore from '../../../stores/UploadStore.tsx'; /* Metro dependency 7223 */
import InteractionStore from '../../interactions/InteractionStore.tsx'; /* Metro dependency 8057 */
import GuildAutomodMessageStore from '../../guild_automod/GuildAutomodMessageStore.tsx'; /* Metro dependency 8183 */
import MediaPostSharePromptStore from '../../media_channel/MediaPostSharePromptStore.tsx'; /* Metro dependency 8185 */
import BasicGuildStore from '../../guild/BasicGuildStore.tsx'; /* Metro dependency 8200 */
import UseIsCallActive from '../../calls/mobile/useIsCallActive.tsx'; /* Metro dependency 8214 */
import LocalInteractionComponentStateStore from '../../interaction_components/LocalInteractionComponentStateStore.tsx'; /* Metro dependency 8358 */
import GiftCodeStore from '../../../stores/GiftCodeStore.tsx'; /* Metro dependency 8450 */
import MessageViewTrackingManager from '../MessageViewTrackingManager.tsx'; /* Metro dependency 9855 */
import VoiceChannelStartTimeStore from '../../channel/VoiceChannelStartTimeStore.tsx'; /* Metro dependency 9858 */
import SummaryStore from '../../summaries/SummaryStore.tsx'; /* Metro dependency 9865 */
import BuildOverrideStore from '../../build_overrides/BuildOverrideStore.tsx'; /* Metro dependency 10557 */
import ActivityLauncherStore from '../../../stores/views/ActivityLauncherStore.tsx'; /* Metro dependency 10581 */
import MediaPostEmbedStore from '../../media_channel/MediaPostEmbedStore.tsx'; /* Metro dependency 10604 */
import PushFeedbackStore from '../../push_feedback/PushFeedbackStore.tsx'; /* Metro dependency 11322 */
import UseSubscribeMissingActivities from '../../activities/useSubscribeMissingActivities.tsx'; /* Metro dependency 11326 */
import UseChatWidth from '../../chat/native/useChatWidth.tsx'; /* Metro dependency 11335 */
import UseLoadMessageContentEntries from '../../interaction_components/content_inventory_entry/native/useLoadMessageContentEntries.tsx'; /* Metro dependency 11338 */
import StartupProfiler from '../../app_startup/StartupProfiler.tsx'; /* Metro dependency 11340 */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactModule from '../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as JsxRuntimeModule from '../../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */
import * as FluxModule from '../../../external/discord_common/js/packages/flux/index.tsx'; /* Metro dependency 566 */
import * as ShallowEqualModule from '../../../external/discord_common/js/packages/shallow-equal/shallowEqual.tsx'; /* Metro dependency 628 */
import * as ConstantsModule from '../../../Constants.tsx'; /* Metro dependency 661 */
import * as GlobalUtilsModule from '../../../utils/GlobalUtils.tsx'; /* Metro dependency 1360 */
import * as PremiumConstantsModule from '../../premium/PremiumConstants.tsx'; /* Metro dependency 1880 */
import * as UserSettingsModule from '../../user_settings/UserSettings.tsx'; /* Metro dependency 3829 */
import * as AgeVerificationUtilsModule from '../../age_assurance/AgeVerificationUtils.tsx'; /* Metro dependency 4813 */
import * as SecondaryIndexMapUtilsModule from '../../../utils/SecondaryIndexMapUtils.tsx'; /* Metro dependency 6274 */
import * as BlockedPaymentsCountryExperimentModule from '../../billing/experiments/BlockedPaymentsCountryExperiment.tsx'; /* Metro dependency 7035 */
import * as UseTrialOfferModule from '../../premium/useTrialOffer.tsx'; /* Metro dependency 7063 */
import * as UseUserCommunicationDisabledModule from '../../guild_communication_disabled/useUserCommunicationDisabled.tsx'; /* Metro dependency 8229 */
import * as ComponentStateContextModule from '../../interaction_components/ComponentStateContext.tsx'; /* Metro dependency 8357 */
import * as PollsInteractionStoreModule from '../../polls/PollsInteractionStore.tsx'; /* Metro dependency 8432 */
import * as QuestHooksModule from '../../quests/hooks/QuestHooks.tsx'; /* Metro dependency 9483 */
import * as MessagesUtilsModule from './MessagesUtils.tsx'; /* Metro dependency 9835 */
import * as MessageImpressionAnalyticsHelpersModule from './MessageImpressionAnalyticsHelpers.tsx'; /* Metro dependency 9854 */
import * as ChannelSummariesExperimentModule from '../../../experiments/ChannelSummariesExperiment.tsx'; /* Metro dependency 9867 */
import * as UseCodedLinksExperimentEmbedsModule from '../../experiments/client_override_hooks/useCodedLinksExperimentEmbeds.tsx'; /* Metro dependency 10563 */
import * as CreateSocialLayerStorefrontProductDetailsEmbedModule from '../../slayer_storefront/native/createSocialLayerStorefrontProductDetailsEmbed.tsx'; /* Metro dependency 10572 */
import * as UseIsSpamMessageRequestModule from '../../message_request/hooks/useIsSpamMessageRequest.tsx'; /* Metro dependency 11291 */
import * as UseIsMessageRequestModule from '../../message_request/hooks/useIsMessageRequest.tsx'; /* Metro dependency 11292 */
import * as SwipeToReplyExperimentModule from '../../../experiments/SwipeToReplyExperiment.tsx'; /* Metro dependency 11323 */
import * as MessagesHooksModule from './MessagesHooks.tsx'; /* Metro dependency 11330 */
import * as GetMessageJumpDataModule from '../../../components_native/chat/getMessageJumpData.tsx'; /* Metro dependency 11333 */
import * as ComputeGlobalSpoilerDisplayModule from '../computeGlobalSpoilerDisplay.tsx'; /* Metro dependency 11334 */
import * as StartupProfilerModule from '../../app_startup/StartupProfiler.tsx'; /* Metro dependency 11340 */
function _fun86349(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#86349, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11507:6, offset: 0x01f922d7, size: 1138 bytes, params: 8, frame: 19
const env0_0 = require;
const _arrayLikeToArray_86352 = function(a0, a1) {
var r0;
var r1;
var r2;
var value3;
var length;
var value5;
var value = undefined;
var value2 = value == null;
reducibleJoin2: while (true) {
if (value2) {
r0 = value2;
break reducibleJoin2;
}
value3 = value > a0.length;
r0 = value3;
break reducibleJoin2;
}
reducibleJoin4: while (true) {
if (r0) {
length = a0.length;
r1 = length;
break reducibleJoin4;
}
r1 = value;
break reducibleJoin4;
}
value = (0, global.Array)(r1);
var value4 = 0;
if (value4 < r1) {
r2 = value4;
reducibleLoop5: while (true) {
value[r2] = a0[r2];
value5 = typeof r2 === 'bigint' ? r2 + 1n : +r2 + 1;
if (value5 < r1) {
r2 = value5;
continue reducibleLoop5;
}
break reducibleLoop5;
}
}
return value;
};
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
let value = ReactModule;
let value5 = JsxRuntimeModule;
const env0_64 = value5.jsx;
const env0_65 = value5.jsxs;
value = value.forwardRef(_fun86353);
value.displayName = 'MessagesConnected';
(FileImportTrackerModule).fileFinishedImporting('modules/messages/native/Messages.tsx');
exports.default = value;
function _createForOfIteratorHelperLoose_86350(a0, a1) { // fn#86350, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11507:955, offset: 0x01f92749, size: 372 bytes, params: 3, frame: 20
var r6;
var r9;
var r5;
var value3;
var regexp;
const env0_0 = a0;
const Symbol = global.Symbol;
let value = typeof Symbol !== 'undefined';
let r1 = value && a0[global.Symbol.iterator];
r1 = !r1 ? a0['@@iterator'] : r1;
if (r1) {
value = r1.call(a0);
return value.next.bind(value);
}
const Array = global.Array;
if (Array.isArray(a0)) {
if (r1) {
}
return _fun86351;
}
value = undefined;
if (a0) {
if (typeof a0 === 'string') {
value = _arrayLikeToArray_86352(a0, value);
r5 = value;
} else {
value3 = ({}).toString.call(a0).slice(8, -1);
r6 = value3 === 'Object' && a0.constructor;
r9 = r6 ? a0.constructor.name : value3;
if (r9 === 'Map') {
r6 = global.Array.from(a0);
} else if (r9 === 'Set') {
r6 = global.Array.from(a0);
} else if (r9 === 'Arguments') {
value = _arrayLikeToArray_86352(a0, value);
r6 = value;
} else {
regexp = RegExp('^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$', '');
if (regexp.test(r9)) {
value = _arrayLikeToArray_86352(a0, value);
r6 = value;
} else {
r6 = value;
}
}
r5 = r6;
}
} else {
r5 = value;
}
if (r5) {
if (r5) {
}
return _fun86351;
}
const TypeError = global.TypeError;
throw new TypeError('Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.');
function _fun86351() { // fn#86351, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11507:1526, offset: 0x00c39d73, size: 69 bytes, params: 1, frame: 5
return env0_1 >= env0_0.length ? {done: true} : {done: false,
value: env0_0[typeof env0_1 === 'bigint' ? env0_1 : +env0_1]};
}
}
function _fun86353(a0, a1) { // fn#86353, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11507:1886, offset: 0x01f928bd, size: 4658 bytes, params: 3, frame: 132
const channel = a0.channel;
let value2 = undefined;
let useStateFromStores = FluxModule.useStateFromStores;
let value3 = Reflect.apply(useStateFromStores, FluxModule, [[MessageStore], function() {
return MessageStore.getMessages(channel.id);
}, [channel.id]]);
const id2 = channel.id;
const guildId = channel.getGuildId();
const guildId2 = guildId;
const guild = FluxModule.useStateFromStores([GuildStore], _fun86355);
const guild2 = guild;
const systemChannelFlags = guild == null ? value2 : guild.systemChannelFlags;
const value5 = FluxModule.useStateFromStores([AuthenticationStore], function() {
return AuthenticationStore.getId();
}, []);
const InlineAttachmentMedia = (UserSettingsModule).InlineAttachmentMedia;
const value6 = InlineAttachmentMedia.useSetting();
const InlineEmbedMedia = (UserSettingsModule).InlineEmbedMedia;
const value7 = InlineEmbedMedia.useSetting();
const RenderEmbeds = (UserSettingsModule).RenderEmbeds;
const value8 = RenderEmbeds.useSetting();
const RenderReactions = (UserSettingsModule).RenderReactions;
const value9 = RenderReactions.useSetting();
const DeveloperMode = (UserSettingsModule).DeveloperMode;
const value10 = DeveloperMode.useSetting();
const AnimateEmoji = (UserSettingsModule).AnimateEmoji;
const value11 = AnimateEmoji.useSetting();
const AnimateStickers = (UserSettingsModule).AnimateStickers;
const value12 = AnimateStickers.useSetting();
const GifAutoPlay = (UserSettingsModule).GifAutoPlay;
const value13 = GifAutoPlay.useSetting();
const TimestampHourCycle = (UserSettingsModule).TimestampHourCycle;
const value14 = TimestampHourCycle.useSetting();
const value15 = FluxModule.useStateFromStores([ThemeStore], function() {
return ThemeStore.theme;
}, []);
const value16 = (SwipeToReplyExperimentModule).useIsMessageSwipeActionsEnabled();
const value17 = useMessageAuthorActivities(value3);
useFetchMessageApplications(value3);
const value18 = (UseSubscribeMissingActivities)(value3, channel);
let binding = guildId2;
const value19 = binding(value18, 2);
const property = value19[0];
value19[1];
const value20 = FluxModule.useStateFromStores([InviteStore], function() {
return InviteStore.getInvites();
}, []);
(MessagesHooksModule).useFetchVoiceChannelInviteStartTimes(value20);
const {appDirectoryEmbedApplications, invalidAppDirectoryEmbedApplicationIds,
appDirectoryEmbedApplicationFetchStates} = FluxModule.useStateFromStoresObject([ApplicationDirectoryApplicationsStore],
function() {
var object = {};
var applicationDirectoryApplicationsStoreBinding = ApplicationDirectoryApplicationsStore;
object.appDirectoryEmbedApplications = applicationDirectoryApplicationsStoreBinding.getApplications();
object.invalidAppDirectoryEmbedApplicationIds = applicationDirectoryApplicationsStoreBinding.getInvalidApplicationIds();
object.appDirectoryEmbedApplicationFetchStates = applicationDirectoryApplicationsStoreBinding.getApplicationFetchStates();
return object;
}, []);
let useStateFromStoresArray = FluxModule.useStateFromStoresArray;
const value22 = Reflect.apply(useStateFromStoresArray, FluxModule, [[ApplicationStore], function() {
return ApplicationStore.getFetchingOrFailedFetchingIds();
}]);
const value23 = FluxModule.useStateFromStoresArray([ApplicationAssetsStore], function() {
return ApplicationAssetsStore.getFetchingIds();
});
const value24 = FluxModule.useStateFromStoresArray([SKUStore], function() {
return SKUStore.getFetchingSkuIds();
});
useStateFromStoresArray = FluxModule.useStateFromStoresArray;
const embeddedActivitiesStoreBinding = EmbeddedActivitiesStore;
const value25 = Reflect.apply(useStateFromStoresArray, FluxModule, [[embeddedActivitiesStoreBinding],
function() {
return EmbeddedActivitiesStore.getEmbeddedActivitiesForChannel(id).map(_fun86373).filter(require(dependencyMap[60]).isNotNullish);
}, [id2]]);
const value26 = FluxModule.useStateFromStoresArray([embeddedActivitiesStoreBinding, PresenceStore], _fun86374);
const value27 = FluxModule.useStateFromStoresArray([embeddedActivitiesStoreBinding], function() {
var value2 = new global.Set();
var env0_0 = value2;
EmbeddedActivitiesStore.getEmbeddedActivitiesByChannel().forEach(_fun86378);
return global.Array.from(value2);
});
const value28 = FluxModule.useStateFromStoresArray([embeddedActivitiesStoreBinding], _fun86381);
const mediaPostEmbeds = FluxModule.useStateFromStores([MediaPostEmbedStore], function() {
return MediaPostEmbedStore.getMediaPostEmbeds();
});
const value29 = FluxModule.useStateFromStores([GuildTemplateStore], function() {
return GuildTemplateStore.getGuildTemplates();
}, []);
const value30 = FluxModule.useStateFromStores([BuildOverrideStore], function() {
return BuildOverrideStore.getBuildOverrides();
}, []);
const value31 = (UseCodedLinksExperimentEmbedsModule).useCodedLinksExperimentEmbeds();
const {quests,
isFetchingCurrentQuests} = (QuestHooksModule).useQuests({'fetchPolicy': 'cache-or-network',
'callerSource': 'messages_native'});
const value34 = value3.filter(function({type}) {
return type === MessageTypes.PREMIUM_REFERRAL;
}).map(function(a0) {
return a0.referralTrialOfferId;
});
const env0_6 = value34.filter((GlobalUtilsModule).isNotNullish);
const value35 = FluxModule.useStateFromStoresArray([ReferralTrialStore], _fun86387);
const value36 = (UseTrialOfferModule).useTrialOffer(PREMIUM_TIER_2_REFERRAL_TRIAL_ID);
const value37 = FluxModule.useStateFromStores([UserStore], function() {
return importDefault(dependencyMap[68]).isPremiumExactly(UserStore.getCurrentUser(), PremiumTypes.TIER_2);
});
const value38 = FluxModule.useStateFromStores([EditMessageStore], function() {
return EditMessageStore.getEditingMessageId(id);
}, [id2]);
const value39 = FluxModule.useStateFromStores([PendingReplyStore], _fun86391, [id2]);
const value40 = FluxModule.useStateFromStores([ReadStateStore], function() {
return ReadStateStore.getOldestUnreadMessageId(id);
}, [id2]);
const value41 = FluxModule.useStateFromStores([GuildVerificationStore], _fun86393, [guildId]);
const value42 = FluxModule.useStateFromStores([PermissionStore], function() {
var permissionStoreBinding = PermissionStore;
var SEND_MESSAGES = Permissions.SEND_MESSAGES;
return permissionStoreBinding.can(SEND_MESSAGES, channel);
}, [channel]);
const value43 = (UseIsCallActive)(id2);
const value44 = FluxModule.useStateFromStores([VoiceStateStore], _fun86395, [value5]);
const value45 = FluxModule.useStateFromStores([RTCConnectionStore], function() {
return RTCConnectionStore.getChannelId();
}, []);
useStateFromStores = FluxModule.useStateFromStores;
const referencedMessageStoreBinding = ReferencedMessageStore;
const value46 = Reflect.apply(useStateFromStores, FluxModule, [[referencedMessageStoreBinding], function() {
var value3 = ChannelTypesSets.THREADS.has(channel.type);
var value4 = null;
return value3 && value4 != channel.parent_id ? ReferencedMessageStore.getMessageByReference({channel_id: channel.parent_id,
message_id: channel.id, guild_id: channel.guild_id}).message : value4;
}, [channel]]);
const {resolvingGiftCodes, resolvedGiftCodes,
acceptingGiftCodes} = FluxModule.useStateFromStoresObject([GiftCodeStore], function() {
var object = {};
var giftCodeStoreBinding = GiftCodeStore;
object.resolvingGiftCodes = giftCodeStoreBinding.getResolvingCodes();
object.resolvedGiftCodes = giftCodeStoreBinding.getResolvedCodes();
object.acceptingGiftCodes = giftCodeStoreBinding.getAcceptingCodes();
return object;
}, []);
const value48 = FluxModule.useStateFromStores([ChannelRTCStore], function() {
return ChannelRTCStore.getParticipants(id).length;
}, [id2]);
const value49 = FluxModule.useStateFromStores([UploadStore], function() {
return UploadStore.getFiles(id);
}, [id2]);
const value50 = FluxModule.useStateFromStores([referencedMessageStoreBinding], function() {
return ReferencedMessageStore.getReplyIdsForChannel(id);
}, [id2]);
const {useReducedMotion, roleStyle, officialMessageStyle, saturation,
displayNameStylesEnabled} = FluxModule.useStateFromStoresObject([AccessibilityStore], function() {
var accessibilityStoreBinding = AccessibilityStore;
return {useReducedMotion: accessibilityStoreBinding.useReducedMotion,
roleStyle: accessibilityStoreBinding.roleStyle,
officialMessageStyle: accessibilityStoreBinding.officialMessageStyle,
saturation: accessibilityStoreBinding.saturation,
displayNameStylesEnabled: accessibilityStoreBinding.displayNameStylesEnabled};
}, []);
const value52 = FluxModule.useStateFromStores([ThreadMessageStore], function() {
return ThreadMessageStore.getChannelThreadsVersion(id);
}, [id2]);
const value53 = FluxModule.useStateFromStoresObject([InteractionStore], function() {
return InteractionStore.getMessageInteractionStates();
});
useStateFromStores = FluxModule.useStateFromStores;
const value54 = binding(Reflect.apply(useStateFromStores, FluxModule, [[LocalInteractionComponentStateStore],
_fun86405, [], (SecondaryIndexMapUtilsModule).isVersionEqual]), 2);
const property2 = value54[0];
const property3 = value54[1];
const hasLoadedExperiments = FluxModule.useStateFromStores([ExperimentStore], function() {
return ExperimentStore.hasLoadedExperiments;
});
const value55 = (UseIsSpamMessageRequestModule).useIsSpamMessageRequest(channel.id);
const value56 = (UseIsMessageRequestModule).useIsMessageRequest(channel.id);
const r49 = value3 != null && (value3.ready || value3.cached);
const r98 = value3 != null && value3.cached;
const r97 = value3 != null && value3.ready && !value3.loadingMore;
const rsvpVersion = FluxModule.useStateFromStores([GuildScheduledEventStore], function() {
return GuildScheduledEventStore.getRsvpVersion();
});
const messagesVersion = FluxModule.useStateFromStores([GuildAutomodMessageStore], function() {
return GuildAutomodMessageStore.getMessagesVersion();
});
useStateFromStores = FluxModule.useStateFromStores;
const guildMemberStoreBinding = GuildMemberStore;
const communicationDisabledVersion = Reflect.apply(useStateFromStores, FluxModule, [[guildMemberStoreBinding],
function() {
return GuildMemberStore.getCommunicationDisabledVersion();
}]);
const value61 = FluxModule.useStateFromStoresObject([guildMemberStoreBinding], _fun86410, [guildId, value3]);
const value62 = FluxModule.useStateFromStores([PermissionStore], function() {
var permissionStoreBinding = PermissionStore;
var MODERATE_MEMBERS = Permissions.MODERATE_MEMBERS;
return permissionStoreBinding.can(MODERATE_MEMBERS, guild);
});
const useCurrentUserCommunicationDisabled = UseUserCommunicationDisabledModule.useCurrentUserCommunicationDisabled;
const property4 = guildId2(Reflect.apply(useCurrentUserCommunicationDisabled, UseUserCommunicationDisabledModule,
[guild == null ? value2 : guild.id]), 2)[1];
const locale = FluxModule.useStateFromStores([LocaleStore], function() {
return LocaleStore.locale;
});
const value64 = (BlockedPaymentsCountryExperimentModule).useIsPaymentsBlocked();
const value65 = FluxModule.useStateFromStores([JoinedThreadsStore], _fun86414);
const value66 = FluxModule.useStateFromStores([MediaPostSharePromptStore], function() {
return MediaPostSharePromptStore.shouldDisplayPrompt(id);
});
const value67 = FluxModule.useStateFromStores([PushFeedbackStore], function() {
return PushFeedbackStore.isEligible();
});
const lazyCacheStatus = FluxModule.useStateFromStores([CacheStore], function() {
return CacheStore.getLazyCacheStatus();
});
const value68 = (GetMessageJumpDataModule).useMessageJumpAndroidKeyboardHeight();
const value69 = (UseKeyboardType)();
const value71 = FluxModule.useStateFromStores([SummaryStore], _fun86418,
[(ChannelSummariesExperimentModule).useChannelSummariesExperiment(channel),
channel.id]);
binding = guild2;
binding.useEffect(_fun86419, [channel.id, value3.hasMoreAfter, value3.hasMoreBefore, value3.length, value3.ready]);
const value72 = (MessageImpressionAnalyticsHelpersModule).useShouldTrackAnnouncementMessageViews({guild: guild,
channel: channel, messages: value3, isMessagesReady: r49});
const value73 = (MessageImpressionAnalyticsHelpersModule).useShouldTrackRichPresenceInviteEmbedViews({messages: value3,
isMessagesReady: r49});
const value74 = (MessageImpressionAnalyticsHelpersModule).useShouldTrackOfficialMessageViews({guild: guild,
messages: value3, isMessagesReady: r49});
const value75 = (MessageImpressionAnalyticsHelpersModule).useShouldTrackVoiceInviteEmbedViews({messages: value3,
isMessagesReady: r49});
const value76 = (ComputeGlobalSpoilerDisplayModule).useShouldDisplaySpoilerObscurity(channel);
const value77 = (AgeVerificationUtilsModule).useIsAgeVerified();
binding.useEffect(_fun86420, [id2, guildId]);
const value78 = (ComponentStateContextModule).useShouldDisableInteractiveComponents(channel.id);
const value79 = useChannelPollInteractions(channel.id);
value3.forEach(_fun86422);
const value80 = useMessagePollInteractions([]);
const value81 = FluxModule.useStateFromStores([ExplicitMediaStore], function() {
return ExplicitMediaStore.getChannelFpInfo(id);
}, [id2]);
const value82 = (UseChatWidth)();
const {unloadedContentEntryMessageIds,
unloadableContentEntryMessageIds} = (UseLoadMessageContentEntries)(value3);
useStateFromStores = FluxModule.useStateFromStores;
userStoreBinding = UserStore;
const value84 = Reflect.apply(useStateFromStores, FluxModule, [[userStoreBinding], _fun86424]);
const version = FluxModule.useStateFromStores([BasicGuildStore], function() {
return BasicGuildStore.getVersion();
});
const value85 = (require(8372) /* metro dependency 8372: useAvatarColor */).useColorStore(function(a0) {
var Object = global.Object;
return Object.keys(a0.palette).length;
});
const guildEmoji = FluxModule.useStateFromStores([EmojiStore], _fun86427);
const value86 = FluxModule.useStateFromStores([VoiceStateStore], _fun86428, [guildId]);
const value87 = FluxModule.useStateFromStoresObject([SortedVoiceStateStore, VoiceChannelStartTimeStore, InviteStore,
ChannelStore], _fun86429);
const value88 = FluxModule.useStateFromStoresArray([SessionsStore], function() {
var sessionsStoreBinding = SessionsStore;
var value2 = sessionsStoreBinding.getRemoteActivities();
var items = [];
arraySpread(items, sessionsStoreBinding.getHiddenActivities(), arraySpread(items, value2, 0,
sessionsStoreBinding),
sessionsStoreBinding);
return items.filter(require(dependencyMap[60]).isNotNullish);
});
const value89 = FluxModule.useStateFromStoresObject([ActivityLauncherStore], _fun86432);
const value90 = FluxModule.useStateFromStoresArray([AuthorizedAppsStore], _fun86434, []);
const value91 = FluxModule.useStateFromStores([userStoreBinding], _fun86435);
(CreateSocialLayerStorefrontProductDetailsEmbedModule).useFetchSocialLayerStorefrontProductDetailsEmbedData(value3);
const Profiles = (StartupProfilerModule).Profiles;
const Messages = Profiles.Messages;
return (
<StartupProfiler profile={Messages}>
{channel.isThread() && ((Component) => <Component absolute />)(importDefault(7704) /* metro dependency 7704: ThemedGradient */)}
{((Component) => <Component ref={a1} theme={value15} saturation={saturation} isStaff={value84} animateEmoji={value11} animateStickers={value12} containerWidth={value82} gifAutoPlay={value13} timestampHourCycle={value14} inlineAttachmentMedia={value6} inlineEmbedMedia={value7} renderEmbeds={value8} renderReactions={value9} developerMode={value10} roleStyle={roleStyle} officialMessageStyle={officialMessageStyle} guildId={guildId} currentUserId={value5} channelId={id2} isMessagesReady={r49} isMessagesCached={r98} isMessagesAckable={r97} isMessageRequest={value56} isSpamMessageRequest={value55} messageAuthorActivities={value17} invites={value20} appDirectoryEmbedApplications={appDirectoryEmbedApplications} invalidAppDirectoryEmbedApplicationIds={invalidAppDirectoryEmbedApplicationIds} invalidApplicationIds={value22} applicationAssetFetchingIds={value23} messages={value3} messagesWithActivitiesLaunching={value28} activityInstanceIds={value25} activityParticipants={value27} activityInstancePresenceDetails={value26} appDirectoryEmbedApplicationFetchStates={appDirectoryEmbedApplicationFetchStates} mediaPostPreviewEmbeds={mediaPostEmbeds} guildTemplates={value29} buildOverrides={value30} fetchingSkuIds={value24} experimentEmbeds={value31} quests={quests} isFetchingCurrentQuests={isFetchingCurrentQuests} editingMessageId={value38} replyingMessageId={value39} oldestUnreadMessageId={value40} canChat={value41} canSendMessages={value42} isCallActive={value43} voiceStatePrivateChannelId={value44} currentClientVoiceChannelId={value45} voiceStateChannelIdSummaryForGuild={value86} resolvingGiftCodes={resolvingGiftCodes} resolvedGiftCodes={resolvedGiftCodes} acceptingGiftCodes={acceptingGiftCodes} participantsLength={value48} uploads={value49} repliedIds={value50} useReducedMotion={useReducedMotion} displayNameStylesEnabled={displayNameStylesEnabled} channelThreadsVersion={value52} rsvpVersion={rsvpVersion} failedMessagesVersion={messagesVersion} communicationDisabledVersion={communicationDisabledVersion} messageAuthorMembers={value61} forwardGuildsVersion={version} interactionStates={value53} interactionComponentStates={property2} interactionComponentStatesVersion={property3} hasLoadedExperiments={hasLoadedExperiments && r49} guildSystemChannelFlags={systemChannelFlags} currentUserCommunicationDisabled={property4} renderCommunicationDisabled={value62} userSettingsLocale={locale} paymentsBlocked={value64} isFollowingForumPost={value65} showMediaPostSharePrompt={value66} showPushFeedback={value67} cacheStoreLoaded={lazyCacheStatus !== 'initializing'} androidKeyboardHeight={value68} selectedSummary={value71} keyboardType={value69} shouldTrackAnnouncementMessageViews={value72} shouldTrackRichPresenceInviteEmbedViews={value73} shouldTrackOfficialMessageViews={value74} shouldTrackVoiceInviteEmbedViews={value75} shouldObscureSpoiler={value76} shouldDisableInteractiveComponents={value78} channelPolls={value79} messageReferencePolls={value80} explicitMediaFalsePositiveInfo={value81} threadStartingReferenceMessage={value46} unloadedContentEntryMessageIds={unloadedContentEntryMessageIds} unloadableContentEntryMessageIds={unloadableContentEntryMessageIds} resolvedReferralTrialOfferIds={value35} referralTrialOfferId={value36 == null ? value2 : value36.id} isPremiumTier2User={value37} activityInviteMessageIds={property} guildInviteColorsFetched={value85} isAgeVerified={value77} guildEmojis={guildEmoji} enableSwipeActions={value16} selfActivities={value88} activityLaunchJoinStates={value89} authorizedAppsTokens={value90} currentUserDisplayNameStyles={value91} voiceInviteDataByChannelId={value87} officialMessageColor={(guild == null ? value2 : guild.officialMessageColor) ?? value2} {...a0} />)(importDefault(11341) /* metro dependency 11341: MessagesRenderer */)}
</StartupProfiler>
);
function _fun86355() { // fn#86355, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11507:2052, offset: 0x01f93b0f, size: 27 bytes, params: 1, frame: 11
return GuildStore.getGuild(Module00057);
}
function useMessageAuthorActivities(a0) { // fn#86358, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11507:2650, offset: 0x01f93b4c, size: 110 bytes, params: 2, frame: 16
const env0_0 = a0;
return (require(566) /* metro dependency 566: flux */).useStateFromStoresObject([PresenceStore], _fun86361,
[env1_4.useMemo(function() {
var object = {};
object.forEach(_fun86360);
return object;
}, [a0])]);
function _fun86359() { // fn#86359, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11507:2706, offset: 0x01f93bba, size: 34 bytes, params: 1, frame: 12
const object = {};
object.forEach(_fun86360);
return object;
function _fun86360(a0) { // fn#86360, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11507:2738, offset: 0x01f93bdc, size: 57 bytes, params: 2, frame: 4
if (a0.author != null && a0.activity != null) {
env0_0[a0.author.id] = null;
}
}
}
function _fun86361() { // fn#86361, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11507:2857, offset: 0x01f93c15, size: 55 bytes, params: 1, frame: 13
var environment;
let value = environment.__proto__.__proto__;
value = importDefault(22) /* metro dependency 22 */;
return value.mapValues(env0_1, function(a0, a1) {
return PresenceStore.getPrimaryActivity(a1);
});
}
}
function useFetchMessageApplications(a0) { // fn#86363, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11507:2928, offset: 0x01f93c63, size: 94 bytes, params: 2, frame: 14
var environment;
const env0_0 = a0;
let value = environment.__proto__;
const binding = env1_4;
value = binding.useMemo(function() {
var value2 = new global.Set();
value2.forEach(_fun86365);
return global.Array.from(value2);
}, [a0]);
const env0_2 = binding.useRef([]);
binding.useEffect(_fun86366, [value]);
function _fun86364() { // fn#86364, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11507:2985, offset: 0x01f93cc1, size: 76 bytes, params: 1, frame: 13
const Set = global.Set;
const set = new Set();
set.forEach(_fun86365);
const Array = global.Array;
return Array.from(set);
function _fun86365(a0) { // fn#86365, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11507:3022, offset: 0x01f93d0d, size: 55 bytes, params: 2, frame: 12
var binding;
if (a0.applicationId != null && a0.application == null) {
binding = env0_0;
binding.add(a0.applicationId);
}
}
}
function _fun86366() { // fn#86366, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11507:3145, offset: 0x01f93d44, size: 174 bytes, params: 1, frame: 19
var defaultImport;
var fetchApplications;
var defaultImport2;
var value3;
let value = environment.__proto__.__proto__;
const areArraysShallowEqual = ShallowEqualModule.areArraysShallowEqual;
let binding = env0_1;
if (!Reflect.apply(areArraysShallowEqual, ShallowEqualModule, [binding, env0_2.current])) {
defaultImport = importDefault(6772) /* metro dependency 6772: ApplicationActionCreators */;
fetchApplications = defaultImport.fetchApplications;
defaultImport2 = importDefault(22) /* metro dependency 22 */;
binding = env0_1;
value3 = defaultImport2(binding);
value = value3.filter((require(1360) /* metro dependency 1360: GlobalUtils */).isNotNullish);
value = value.uniq();
value = value.value();
Reflect.apply(fetchApplications, defaultImport, [value, false]);
env0_2.current = binding;
}
}
}
function _fun86372() { // fn#86372, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11507:4113, offset: 0x01f93e82, size: 84 bytes, params: 1, frame: 13
const embeddedActivitiesStoreBinding = EmbeddedActivitiesStore;
const getEmbeddedActivitiesForChannel = embeddedActivitiesStoreBinding.getEmbeddedActivitiesForChannel;
const value4 = Reflect.apply(getEmbeddedActivitiesForChannel, embeddedActivitiesStoreBinding,
[id]).map(function(a0) {
return a0.launchId;
});
return value4.filter((GlobalUtilsModule).isNotNullish);
}
function _fun86374() { // fn#86374, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11507:4258, offset: 0x01f93ee1, size: 92 bytes, params: 1, frame: 15
var environment;
var r2;
var value3;
var value4;
const _loop_863752 = _loop_86375;
let value = environment.__proto__;
const _createForOfIteratorHelperLoose_86350Binding = _createForOfIteratorHelperLoose_86350;
value = EmbeddedActivitiesStore.getEmbeddedActivitiesForChannel(id);
value = _createForOfIteratorHelperLoose_86350Binding(value);
const value2 = value();
let done = value2.done;
if (!done) {
for (r2 = value2; true; r2 = value4) {
value3 = r2.value;
_loop_863752(value3);
value4 = value();
done = value4.done;
if (done) {
break;
}
}
}
return [];
function _loop_86375(a0) { // fn#86375, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11507:4284, offset: 0x01f93f3d, size: 146 bytes, params: 2, frame: 18
var environment;
var binding;
const env0_0 = a0;
let value = environment.__proto__.__proto__;
const presenceStoreBinding = PresenceStore;
const findActivity = presenceStoreBinding.findActivity;
const userIds = a0.userIds;
value = Reflect.apply(userIds.values().next, value, []).value;
value = Reflect.apply(findActivity, presenceStoreBinding, [value, _fun86376]);
const value2 = undefined;
if ((value == null ? value2 : value.details) != null) {
binding = env0_0;
binding.push('' + a0.launchId + ':' + value.details);
}
return value2;
function _fun86376({application_id}) { // fn#86376, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11507:4350, offset: 0x01f93fcf, size: 27 bytes, params: 2, frame: 2
return application_id === env0_0.applicationId;
}
}
}
function _fun86377() { // fn#86377, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11507:4620, offset: 0x01f93fea, size: 88 bytes, params: 1, frame: 13
const Set = global.Set;
const set = new Set();
EmbeddedActivitiesStore.getEmbeddedActivitiesByChannel().forEach(function(a0, a1) {
var env0_0 = a1;
a0.forEach(_fun86379);
});
const Array = global.Array;
return Array.from(set);
function _fun86378(a0, a1) { // fn#86378, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11507:4690, offset: 0x01f94042, size: 33 bytes, params: 3, frame: 11
const env0_0 = a1;
a0.forEach(function({userIds}) {
userIds.forEach(_fun86380);
});
function _fun86379({userIds}) { // fn#86379, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11507:4709, offset: 0x01f94063, size: 32 bytes, params: 2, frame: 11
userIds.forEach(_fun86380);
function _fun86380(a0) { // fn#86380, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11507:4732, offset: 0x01f94083, size: 59 bytes, params: 2, frame: 17
env2_0.add('' + require + ':' + a0);
}
}
}
}
function _fun86381() { // fn#86381, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11507:4823, offset: 0x01f940be, size: 152 bytes, params: 1, frame: 21
var r2;
var r10;
var value5;
var value6;
var property;
var isLaunching;
var componentId;
var value7;
var length;
var value8;
var push;
var value9;
const items2 = [];
const value3 = _createForOfIteratorHelperLoose_86350(EmbeddedActivitiesStore.getLaunchStates());
const value4 = value3();
let done = value4.done;
if (!done) {
r2 = value4;
while (true) {
value5 = r2.value;
value6 = env1_3(value5, 2);
value6[0];
property = value6[1];
isLaunching = property.isLaunching;
if (isLaunching) {
value7 = property.componentId != null;
r10 = value7;
} else {
r10 = isLaunching;
}
if (!r10) {
continue;
}
componentId = property.componentId;
length = componentId.length;
value8 = length > 0;
r10 = value8;
if (!r10) {
continue;
}
push = items2.push;
componentId = property.componentId;
Reflect.apply(push, items2, [componentId]);
value9 = value3();
done = value9.done;
if (done) {
break;
}
r2 = value9;
continue;
}
}
return items2;
}
function _fun86387() { // fn#86387, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11507:5577, offset: 0x01f941bb, size: 69 bytes, params: 1, frame: 13
const value = env0_6.map(_fun86388);
return value.filter((GlobalUtilsModule).isNotNullish);
function _fun86388(a0) { // fn#86388, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11507:5589, offset: 0x01f94200, size: 39 bytes, params: 2, frame: 11
const value = environment.__proto__.__proto__;
return ReferralTrialStore.getRelevantUserTrialOffer(a0)?.id;
}
}
function _fun86391() { // fn#86391, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11507:5938, offset: 0x01f94282, size: 48 bytes, params: 1, frame: 11
let value = environment.__proto__;
value = PendingReplyStore.getPendingReply(id);
return value == null ? undefined : value.message.id;
}
function _fun86393() { // fn#86393, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11507:6132, offset: 0x01f942cf, size: 40 bytes, params: 1, frame: 12
return Module00057 != null && GuildVerificationStore.canChatInGuild(Module00057);
}
function _fun86395() { // fn#86395, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11507:6303, offset: 0x01f9431d, size: 32 bytes, params: 1, frame: 13
return VoiceStateStore.getUserVoiceChannelId(ME, env0_5);
}
function _fun86405() { // fn#86405, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11507:7615, offset: 0x01f944d0, size: 45 bytes, params: 1, frame: 10
const value = environment.__proto__;
const localInteractionComponentStateStoreBinding = LocalInteractionComponentStateStore;
const items2 = [localInteractionComponentStateStoreBinding.getInteractionComponentStates()];
const getInteractionComponentStateVersion = localInteractionComponentStateStoreBinding.getInteractionComponentStateVersion;
items2[1] = Reflect.apply(getInteractionComponentStateVersion, localInteractionComponentStateStoreBinding, []);
return items2;
}
function _fun86410() { // fn#86410, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11507:8251, offset: 0x01f9454b, size: 56 bytes, params: 1, frame: 12
if (Module00057 != null) {
if (env0_1 == null) {
return {};
}
env0_1.forEach(_fun86411);
}
return {};
function _fun86411(a0) { // fn#86411, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11507:8315, offset: 0x01f94583, size: 96 bytes, params: 2, frame: 16
var value2;
var guildMemberStoreBinding;
var getMember;
var value3;
var value4;
const author = a0.author;
const value = undefined;
if ((author == null ? value : author.id) != null) {
value2 = environment.__proto__.__proto__;
guildMemberStoreBinding = GuildMemberStore;
getMember = guildMemberStoreBinding.getMember;
value3 = environment.__proto__;
value4 = Reflect.apply(getMember, guildMemberStoreBinding, [env1_3, a0.author.id]);
if (value4 != null) {
env0_0[a0.author.id] = value4;
}
}
return value;
}
}
function _fun86414() { // fn#86414, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11507:8731, offset: 0x01f94618, size: 50 bytes, params: 1, frame: 12
const isForumPost2 = channel.isForumPost();
return isForumPost2 ? JoinedThreadsStore.hasJoined(id) : !!isForumPost2;
}
function _fun86418() { // fn#86418, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11507:9115, offset: 0x01f9468b, size: 41 bytes, params: 1, frame: 12
return env0_7 ? SummaryStore.selectedSummary(channel.id) : null;
}
function _fun86419() { // fn#86419, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11507:9178, offset: 0x01f946b4, size: 142 bytes, params: 1, frame: 18
var value4;
var defaultImport;
const ready = env0_1.ready;
let r1 = ready ? env0_1.length !== 0 : !ready;
r1 = !r1 ? env0_1.hasMoreBefore : r1;
r1 = !r1 ? env0_1.hasMoreAfter : r1;
if (!r1) {
value4 = environment.__proto__;
defaultImport = importDefault(9764) /* metro dependency 9764: DimensionActionCreators */;
defaultImport.updateChannelDimensions(channel.id, global.Date.now(), 1, 1, 0);
}
}
function _fun86420() { // fn#86420, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11507:9833, offset: 0x01f94742, size: 46 bytes, params: 1, frame: 11
var environment;
const value = environment.__proto__;
(MessageViewTrackingManager).handleChannelSelect();
return _fun86421;
function _fun86421() { // fn#86421, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11507:9869, offset: 0x01f94770, size: 37 bytes, params: 1, frame: 11
const value = environment.__proto__.__proto__;
(MessageViewTrackingManager).handleChannelSelect();
}
}
function _fun86422({messageReference}) { // fn#86422, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11507:10009, offset: 0x01f94795, size: 51 bytes, params: 2, frame: 13
const message_id = messageReference?.message_id;
if (message_id != null) {
env0_8.push(message_id);
}
}
function _fun86424() { // fn#86424, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11507:10321, offset: 0x01f947e5, size: 49 bytes, params: 1, frame: 11
var r1;
let value = environment.__proto__;
value = UserStore.getCurrentUser();
if (value == null) {
r1 = undefined;
} else {
value = value.isStaff();
r1 = value;
}
return r1 != null && r1;
}
function _fun86427() { // fn#86427, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11507:10564, offset: 0x01f9484b, size: 27 bytes, params: 1, frame: 11
return EmojiStore.getGuildEmoji(Module00057);
}
function _fun86428() { // fn#86428, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11507:10628, offset: 0x01f94866, size: 72 bytes, params: 1, frame: 13
if (Module00057 == null) {
return null;
}
return (MessagesUtilsModule).getVoiceStateChannelSummaryFromVoiceStates(VoiceStateStore.getVoiceStates(Module00057));
}
function _fun86429() { // fn#86429, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11507:10806, offset: 0x01f948ae, size: 341 bytes, params: 1, frame: 35
var environment;
var r5;
var id;
var r22;
var value8;
var channel;
var moduleValue;
var isVoiceChannelInvite;
var id2;
var guild;
var voiceStatesForChannelAlt;
var value10;
var value11;
var voiceChannelStartTimeStoreBinding;
var getStartTime;
var channelStoreBinding;
var getChannel;
var value12;
var value13;
const object = {};
let value = environment.__proto__;
const _createForOfIteratorHelperLoose_86350Binding = _createForOfIteratorHelperLoose_86350;
const value3 = InviteStore.getInvites().values();
const value4 = undefined;
const value5 = _createForOfIteratorHelperLoose_86350Binding(value3);
const value6 = value5();
let done = value6.done;
const value7 = '';
if (!done) {
r5 = value6;
while (true) {
value8 = r5.value;
channel = value8.channel;
id = channel == null ? value4 : channel.id;
if (id == null) {
continue;
}
moduleValue = require(4116) /* metro dependency 4116: InviteTypeUtils */;
isVoiceChannelInvite = moduleValue.isVoiceChannelInvite;
if (!Reflect.apply(isVoiceChannelInvite, moduleValue, [value8])) {
continue;
}
channel = value8.channel;
id2 = channel.id;
guild = value8.guild;
if (guild == null) {
id = value4;
continue;
}
id = guild.id;
voiceStatesForChannelAlt = SortedVoiceStateStore.getVoiceStatesForChannelAlt(id2, id);
value10 = voiceStatesForChannelAlt.map(function(a0) {
var value = '';
return value + (a0.voiceState.selfStream ? '*' : value) + a0.user.id;
});
value11 = value10.join(',');
voiceChannelStartTimeStoreBinding = VoiceChannelStartTimeStore;
getStartTime = voiceChannelStartTimeStoreBinding.getStartTime;
channelStoreBinding = ChannelStore;
getChannel = channelStoreBinding.getChannel;
value12 = Reflect.apply(getStartTime, voiceChannelStartTimeStoreBinding, [Reflect.apply(getChannel,
channelStoreBinding, [id2])]);
if (value12 != null) {
r22 = value12;
continue;
}
r22 = value7;
continue;
object[id2] = value7 + value11 + ':' + r22;
value13 = value5();
done = value13.done;
if (done) {
break;
}
r5 = value13;
continue;
}
}
return object;
}
function _fun86432() { // fn#86432, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11507:11409, offset: 0x01f94a96, size: 32 bytes, params: 1, frame: 13
return env0_9.reduce(_fun86433, {});
function _fun86433(a0, a1) { // fn#86433, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11507:11424, offset: 0x01f94ab6, size: 71 bytes, params: 3, frame: 16
let application_id = a1.application_id;
if (application_id != null) {
var value = environment.__proto__.__proto__;
var activityLauncherStoreBinding = ActivityLauncherStore;
var getState = activityLauncherStoreBinding.getState;
application_id = a1.application_id;
var JOIN = ActivityActionTypes.JOIN;
value = Reflect.apply(getState, activityLauncherStoreBinding, [application_id, JOIN]);
if (value != null) {
a0[a1.application_id] = value;
}
}
return a0;
}
}
function _fun86434() { // fn#86434, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11507:11603, offset: 0x01f94afd, size: 43 bytes, params: 1, frame: 10
const value = environment.__proto__;
const authorizedAppsStoreBinding = AuthorizedAppsStore;
const items2 = [authorizedAppsStoreBinding.getNewestTokens()];
const getApplicationFetchStateVersion = authorizedAppsStoreBinding.getApplicationFetchStateVersion;
items2[1] = Reflect.apply(getApplicationFetchStateVersion, authorizedAppsStoreBinding, []);
return items2;
}
function _fun86435() { // fn#86435, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11507:11708, offset: 0x01f94b28, size: 35 bytes, params: 1, frame: 10
const value = environment.__proto__;
return UserStore.getCurrentUser()?.displayNameStyles;
}
}
}
function _fun86373(a0) { // fn#86373, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11507:4160, offset: 0x01f93ed6, size: 11 bytes, params: 2, frame: 1
return a0.launchId;
}
global.__d(_fun86349, 11321, [57, 31, 4502, 1378, 6874, 4234, 10557, 4885, 4606, 9858, 6540, 4107, 4822, 6773, 8200,
8183, 4117, 7069, 8358, 8057, 10604, 8185, 8432, 7065, 11322, 7074, 4833, 9865, 3786, 6898, 1949, 1310, 1226,
5109, 1379, 7075, 8450, 1945, 1867, 4798, 4097, 4814, 3784, 4396, 4294, 4605, 4296, 7223, 1878, 4297, 4279,
10581, 4300, 661, 1880, 33, 566, 22, 628, 6772, 1360, 3829, 11323, 11326, 11330, 10563, 9483, 7063, 3802, 8214,
6274, 11291, 11292, 8229, 7035, 11333, 4022, 9867, 9764, 9854, 11334, 4813, 9855, 8357, 11335, 11338, 8372,
9835, 4116, 10572, 11340, 7704, 11341,
2]) /* metro module 11321, dependencies: [57, 31, 4502, 1378, 6874, 4234, 10557, 4885, 4606, 9858, 6540, 4107, 4822, 6773, 8200, 8183, 4117, 7069, 8358, 8057, 10604, 8185, 8432, 7065, 11322, 7074, 4833, 9865, 3786, 6898, 1949, 1310, 1226, 5109, 1379, 7075, 8450, 1945, 1867, 4798, 4097, 4814, 3784, 4396, 4294, 4605, 4296, 7223, 1878, 4297, 4279, 10581, 4300, 661, 1880, 33, 566, 22, 628, 6772, 1360, 3829, 11323, 11326, 11330, 10563, 9483, 7063, 3802, 8214, 6274, 11291, 11292, 8229, 7035, 11333, 4022, 9867, 9764, 9854, 11334, 4813, 9855, 8357, 11335, 11338, 8372, 9835, 4116, 10572, 11340, 7704, 11341, 2] */;