4005 lines
222 KiB
TypeScript
4005 lines
222 KiB
TypeScript
/* Metro module 11341; source: modules/messages/native/MessagesRenderer.tsx; dependencies: [5, 57, 31, 7729, 1945, 3784, 4605, 4279, 8178, 661, 33, 14, 9824, 9835, 9764, 11342, 8177, 9850, 11330, 22, 21, 11344, 9484, 9854, 9849, 11346, 7067, 11347, 11517, 4044, 1216, 9852, 11333, 628, 4101, 4116, 11523, 9869, 9834, 477, 1583, 6531, 11524, 2] */
|
|
function _fun86662(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#86662, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11527:6, offset: 0x01f99e99, size: 485 bytes, params: 8, frame: 19
|
|
const env0_0 = require;
|
|
const _arrayLikeToArray_86665 = 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 computeForceReload = function(a0, a1) {
|
|
return a0.theme !== a1.theme || a0.saturation !== a1.saturation;
|
|
};
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
const env0_3 = importDefault(5) /* metro dependency 5 */;
|
|
const env0_4 = importDefault(57) /* metro dependency 57 */;
|
|
let value = importAll(31) /* metro dependency 31 */;
|
|
const env0_6 = (require(7729) /* metro dependency 7729: useChatBottomManagerUIStore */).updateShouldShowJumpToPresentButton;
|
|
const env0_7 = (require(1945) /* metro dependency 1945: GuildMemberStore */).getUserCommunicationDisabledVersion;
|
|
const permissionStore = importDefault(3784) /* metro dependency 3784: PermissionStore */;
|
|
const readStateStore = importDefault(4605) /* metro dependency 4605: ReadStateStore */;
|
|
const skuStore = importDefault(4279) /* metro dependency 4279: SKUStore */;
|
|
const env0_11 = (require(8178) /* metro dependency 8178: RowGeneratorConstants */).Changeset;
|
|
const constantsModule = require(661) /* metro dependency 661: Constants */;
|
|
const env0_12 = constantsModule.ActivityActionTypes;
|
|
const env0_13 = constantsModule.MAX_MESSAGES_PER_CHANNEL;
|
|
const env0_14 = constantsModule.MessageFlags;
|
|
const env0_15 = constantsModule.MessageTypes;
|
|
const env0_16 = constantsModule.Permissions;
|
|
let value3 = require(33) /* metro dependency 33 */;
|
|
const env0_17 = value3.jsx;
|
|
const env0_18 = value3.Fragment;
|
|
const env0_19 = value3.jsxs;
|
|
let value4 = value.forwardRef(_fun86672);
|
|
value4.displayName = 'Messages';
|
|
value = value.memo(value4, _fun86711);
|
|
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/messages/native/MessagesRenderer.tsx');
|
|
exports.default = value;
|
|
}
|
|
|
|
function _createForOfIteratorHelperLoose_86663(a0, a1) { // fn#86663, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11527:432, offset: 0x01f9a07e, 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 _fun86664;
|
|
}
|
|
value = undefined;
|
|
if (a0) {
|
|
if (typeof a0 === 'string') {
|
|
value = _arrayLikeToArray_86665(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_86665(a0, value);
|
|
r6 = value;
|
|
} else {
|
|
regexp = RegExp('^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$', '');
|
|
if (regexp.test(r9)) {
|
|
value = _arrayLikeToArray_86665(a0, value);
|
|
r6 = value;
|
|
} else {
|
|
r6 = value;
|
|
}
|
|
}
|
|
r5 = r6;
|
|
}
|
|
} else {
|
|
r5 = value;
|
|
}
|
|
if (r5) {
|
|
if (r5) {
|
|
}
|
|
return _fun86664;
|
|
}
|
|
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 recordTimings_86667(a0, a1) { // fn#86667, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11527:1360, offset: 0x01f9a21d, size: 107 bytes, params: 3, frame: 19
|
|
const value = importDefault(14) /* metro dependency 14: TTITracker */;
|
|
value.recordMessageRender(a0, a1.map(function(a0) {
|
|
return a0.id;
|
|
}), a1.hasFetched || a1.ready && !a1.cached, a1.hasMoreAfter);
|
|
}
|
|
|
|
function handleTapShowAltText({nativeEvent}) { // fn#86669, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11527:1487, offset: 0x01f9a288, size: 52 bytes, params: 2, frame: 12
|
|
(importDefault(9824) /* metro dependency 9824: openMediaModalOverlayAltTextSheet */)({description: nativeEvent.description});
|
|
}
|
|
|
|
function handleMediaPlayFinishedAnalytics_86670({nativeEvent}) { // fn#86670, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11527:1581, offset: 0x01f9a2bc, size: 47 bytes, params: 2, frame: 12
|
|
(require(9835) /* metro dependency 9835: MessagesUtils */).handleMediaPlayFinishedAnalytics(nativeEvent);
|
|
}
|
|
|
|
function isLoadingAtTop_86671(a0, a1) { // fn#86671, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11527:1663, offset: 0x01f9a2eb, size: 102 bytes, params: 3, frame: 15
|
|
var r2;
|
|
var value2;
|
|
var value3;
|
|
var done;
|
|
var value4;
|
|
var changeType;
|
|
var INSERT;
|
|
var value5;
|
|
if (a1) {
|
|
value2 = _createForOfIteratorHelperLoose_86663(a0);
|
|
value3 = value2();
|
|
done = value3.done;
|
|
if (done) {
|
|
return false;
|
|
}
|
|
r2 = value3;
|
|
loopExit3: while (true) {
|
|
value4 = r2.value;
|
|
changeType = value4.changeType;
|
|
INSERT = Changeset.INSERT;
|
|
if (changeType === INSERT) {
|
|
break loopExit3;
|
|
}
|
|
value5 = value2();
|
|
done = value5.done;
|
|
if (done) {
|
|
return false;
|
|
}
|
|
r2 = value5;
|
|
continue;
|
|
}
|
|
return value4.index <= 1;
|
|
}
|
|
return false;
|
|
}
|
|
|
|
function _fun86672(a0, a1) { // fn#86672, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11527:1925, offset: 0x01f9a351, size: 2741 bytes, params: 3, frame: 41
|
|
const env0_0 = a0;
|
|
const binding = env0_5;
|
|
let useState = binding.useState;
|
|
const value2 = Reflect.apply(useState, binding, [_fun86673]);
|
|
const binding2 = env0_4;
|
|
const property = binding2(value2, 1)[0];
|
|
useState = binding.useState;
|
|
const property2 = binding2(Reflect.apply(useState, binding, [_fun86674]), 1)[0];
|
|
const [env0_2, env0_3] = binding2(binding.useState(false), 2);
|
|
useState = binding.useState;
|
|
const value6 = binding2(Reflect.apply(useState, binding, [false]), 2);
|
|
const property3 = value6[0];
|
|
var env0_5 = value6[1];
|
|
const value7 = binding.useRef(false);
|
|
const value8 = binding.useRef(false);
|
|
const value9 = binding.useRef([]);
|
|
const value10 = binding.useRef(null);
|
|
const value11 = binding.useRef(false);
|
|
const value12 = binding.useRef(null);
|
|
let useCallback = binding.useCallback;
|
|
let closure = _fun86675;
|
|
const value13 = Reflect.apply(useCallback, binding, [closure, []]);
|
|
const value14 = (require(11330) /* metro dependency 11330: MessagesHooks */).useChatUpdatesQueue(value12, value13);
|
|
const value15 = binding.useCallback(_fun86676, [a0.canChat, a0.channel]);
|
|
const value16 = binding.useCallback(_fun86677, [a0.messages]);
|
|
useCallback = binding.useCallback;
|
|
let channelId = a0.channelId;
|
|
const value17 = Reflect.apply(useCallback, binding, [_fun86679, [a0.channel, channelId, a0.messages.jumpTargetId]]);
|
|
const value18 = (importDefault(11344) /* metro dependency 11344: useChannelLoading */)({channelId: a0.channelId,
|
|
jumpTargetId: a0.messages.jumpTargetId, oldestUnreadMessageId: a0.oldestUnreadMessageId,
|
|
shouldJumpToOriginalPost: value17});
|
|
const channelLatestMessageLoadingStatsManager = value18.channelLatestMessageLoadingStatsManager;
|
|
const env0_15 = value18.startOrCancelLatestMessagesLoad;
|
|
closure = handleVisibleMessagesChange_86680;
|
|
const closure2 = findMessageIndex_86681;
|
|
const defaultImport2 = importDefault(11346) /* metro dependency 11346: useScrollHandlers */;
|
|
let useReducedMotion = a0.useReducedMotion;
|
|
const value19 = defaultImport2({chatRef: value12, chatManager: property, chatUpdatesQueue: value14,
|
|
pendingUpdatesQueueRef: value9, animatedRef: value7, fetchMoreBefore: fetchMoreBefore,
|
|
fetchMoreAfter: fetchMoreAfter, handleVisibleMessagesChange: closure, applyNativeRowsUpdate: value13,
|
|
messages: a0.messages, channel: a0.channel, channelId: a0.channelId, screenIndex: a0.screenIndex,
|
|
onScroll: a0.onScroll, useReducedMotion: useReducedMotion, isStaff: a0.isStaff,
|
|
visibleMessagesWindowHandler: a0.visibleMessagesWindowHandler});
|
|
const env0_18 = value19.hasHandledScrollRef;
|
|
const env0_19 = value19.isAtBottomRef;
|
|
const env0_20 = value19.isNearBottomRef;
|
|
const env0_21 = value19.isNearTopRef;
|
|
const env0_22 = value19.deceleratingRef;
|
|
const env0_23 = value19.draggingRef;
|
|
const env0_24 = value19.firstIgnoredScrollEventTimestampRef;
|
|
const loadMoreBefore = value19.loadMoreBefore;
|
|
const loadMoreAfter = value19.loadMoreAfter;
|
|
const env0_25 = value19.scrollToTop;
|
|
const scrollToTopMessage = value19.scrollToTopMessage;
|
|
const updateNativeRows = value19.updateNativeRows;
|
|
const env0_26 = value19.handleScrollCallbacks;
|
|
const handleScrollPosition = value19.handleScrollPosition;
|
|
binding.useRef(null).current = {getMessage: value16, chatInputRef: a0.chatInputRef, selectedChannelId: a0.channelId,
|
|
revealedMessageId: a0.messages.revealedMessageId, uploads: a0.uploads, paymentsBlocked: a0.paymentsBlocked,
|
|
loadMoreBefore: loadMoreBefore, loadMoreAfter: loadMoreAfter};
|
|
useState = binding.useState;
|
|
const property4 = binding2(Reflect.apply(useState, binding, [_fun86684]), 1)[0];
|
|
const value21 = _fun86686();
|
|
binding.useImperativeHandle(a1, function() {
|
|
return {scrollToBottom: scrollToBottom_86692, jumpToPresent: jumpToPresent_86693,
|
|
scrollToNewMessages: scrollToNewMessages_86694, getChatRef: getChatRef_86695};
|
|
});
|
|
const defaultImport3 = importDefault(11517) /* metro dependency 11517: useRowManager */;
|
|
let animateEmoji = a0.animateEmoji;
|
|
useReducedMotion = a0.useReducedMotion;
|
|
const value22 = defaultImport3({chatManager: property, rowGenerator: property2,
|
|
animatingStickerMessageIdRef: value10, canAddNewReactions: value15, channel: a0.channel, messages: a0.messages,
|
|
isMessagesReady: a0.isMessagesReady, uploads: a0.uploads, roleStyle: a0.roleStyle,
|
|
oldestUnreadMessageId: a0.oldestUnreadMessageId, replyingMessageId: a0.replyingMessageId,
|
|
inlineAttachmentMedia: a0.inlineAttachmentMedia, inlineEmbedMedia: a0.inlineEmbedMedia,
|
|
renderEmbeds: a0.renderEmbeds, renderReactions: a0.renderReactions, animateEmoji: animateEmoji,
|
|
gifAutoPlay: a0.gifAutoPlay, timestampHourCycle: a0.timestampHourCycle, currentUserId: a0.currentUserId,
|
|
renderCommunicationDisabled: a0.renderCommunicationDisabled, selectedSummary: a0.selectedSummary,
|
|
enableSwipeActions: a0.enableSwipeActions, isResourceChannel: a0.isResourceChannel,
|
|
shouldObscureSpoiler: a0.shouldObscureSpoiler,
|
|
shouldDisableInteractiveComponents: a0.shouldDisableInteractiveComponents,
|
|
unloadableContentEntryMessageIds: a0.unloadableContentEntryMessageIds, containerWidth: a0.containerWidth,
|
|
chatRef: value12, loadedRef: value11, animatedRef: value7, hasMoreMessagesAfterForLastUpdateRef: value8,
|
|
updateNativeRows: updateNativeRows, isLoadingAtTop: isLoadingAtTop_86671,
|
|
channelLatestMessageLoadingStatsManager: channelLatestMessageLoadingStatsManager, channelId: a0.channelId,
|
|
isMessagesCached: a0.isMessagesCached, chatUpdatesQueue: value14, shouldJumpToOriginalPost: value17,
|
|
findMessageIndex: closure2, scrollToTopMessage: scrollToTopMessage, useReducedMotion: useReducedMotion});
|
|
const env0_32 = value22.updateRows;
|
|
const env0_33 = value22.scrollToMessageId;
|
|
binding.useEffect(_fun86699, []);
|
|
binding.useEffect(function() {
|
|
return _fun86703;
|
|
}, [a0.channelId, a0.screenIndex]);
|
|
const env0_36 = binding.useRef({props: a0, shouldForceRender: property3});
|
|
binding.useLayoutEffect(_fun86704);
|
|
const jsxRuntimeEnv0_18Binding = jsxRuntimeEnv0_18;
|
|
const ChatAndroid = importDefault(9869) /* metro dependency 9869: ChatAndroid */;
|
|
const style = a0.style;
|
|
channelId = a0.channelId;
|
|
const alwaysRespectKeyboard = a0.alwaysRespectKeyboard;
|
|
const handleTapImage = property4.handleTapImage;
|
|
const handleTapChannel = property4.handleTapChannel;
|
|
const handleLongPressChannel = property4.handleLongPressChannel;
|
|
const handleTapAttachmentLink = property4.handleTapAttachmentLink;
|
|
const handleLongPressAttachmentLink = property4.handleLongPressAttachmentLink;
|
|
const handleTapCall = property4.handleTapCall;
|
|
const handleTapMention = property4.handleTapMention;
|
|
const handleTapCommandMention = property4.handleTapCommandMention;
|
|
const handleLongPressCommandMention = property4.handleLongPressCommandMention;
|
|
const handleTapGameMention = property4.handleTapGameMention;
|
|
const handleTapLink = property4.handleTapLink;
|
|
const handleLongPressLink = property4.handleLongPressLink;
|
|
const handleTapReaction = property4.handleTapReaction;
|
|
const handleLongPressReaction = property4.handleLongPressReaction;
|
|
const handleTapAvatar = property4.handleTapAvatar;
|
|
const handleTapUsername = property4.handleTapUsername;
|
|
const handleLongPressUsername = property4.handleLongPressUsername;
|
|
const handleOpenSticker = property4.handleOpenSticker;
|
|
const handleLongPressMessage = property4.handleLongPressMessage;
|
|
const handleInitiateReply = property4.handleInitiateReply;
|
|
const handleInitiateEdit = property4.handleInitiateEdit;
|
|
const handleInitiateThread = property4.handleInitiateThread;
|
|
const handleTapMessage = property4.handleTapMessage;
|
|
const handleDoubleTapMessage = property4.handleDoubleTapMessage;
|
|
const handleTapSeparator = property4.handleTapSeparator;
|
|
const handleTapInviteEmbed = property4.handleTapInviteEmbed;
|
|
const handleTapInviteEmbedAccept = property4.handleTapInviteEmbedAccept;
|
|
const handleTapJoinActivity = property4.handleTapJoinActivity;
|
|
const handleTapJoinRichPresence = property4.handleTapJoinRichPresence;
|
|
const onPressKey = a0.onPressKey;
|
|
animateEmoji = a0.animateEmoji;
|
|
const handleTapGiftCodeEmbed = property4.handleTapGiftCodeEmbed;
|
|
const handleTapCancelUploadItem = property4.handleTapCancelUploadItem;
|
|
const handleTapReply = property4.handleTapReply;
|
|
const handleTapSummary = property4.handleTapSummary;
|
|
const handleTapSummaryJump = property4.handleTapSummaryJump;
|
|
const handleTapGiftCodeAccept = property4.handleTapGiftCodeAccept;
|
|
const handleTapReferralRedeem = property4.handleTapReferralRedeem;
|
|
const handleGiftIntentCardViewed = property4.handleGiftIntentCardViewed;
|
|
const handleTapGiftIntentPrimaryCta = property4.handleTapGiftIntentPrimaryCta;
|
|
const handleTapGiftIntentSecondaryCta = property4.handleTapGiftIntentSecondaryCta;
|
|
const handleTapThreadEmbed = property4.handleTapThreadEmbed;
|
|
const handleTapEmoji = property4.handleTapEmoji;
|
|
const handleTapTimestamp = property4.handleTapTimestamp;
|
|
const handleTapInlineCode = property4.handleTapInlineCode;
|
|
const handleTapRoleIcon = property4.handleTapRoleIcon;
|
|
const handleTapVoiceChannelBadge = property4.handleTapVoiceChannelBadge;
|
|
const handleTapGameIcon = property4.handleTapGameIcon;
|
|
const handleTapSuppressNotificationsIcon = property4.handleTapSuppressNotificationsIcon;
|
|
const handleTapConnectionsRoleTag = property4.handleTapConnectionsRoleTag;
|
|
const handleTapTimeoutIcon = property4.handleTapTimeoutIcon;
|
|
const handleTapButtonActionComponent = property4.handleTapButtonActionComponent;
|
|
const handleTapSelectActionComponent = property4.handleTapSelectActionComponent;
|
|
const handleTapWelcomeReply = property4.handleTapWelcomeReply;
|
|
const handleTapInviteToSpeak = property4.handleTapInviteToSpeak;
|
|
const handleTapAutoModerationActions = property4.handleTapAutoModerationActions;
|
|
const handleTapAutoModerationFeedback = property4.handleTapAutoModerationFeedback;
|
|
const handleTapFollowForumPost = property4.handleTapFollowForumPost;
|
|
const handleTapShareForumPost = property4.handleTapShareForumPost;
|
|
const handleTapReactionOverflow = property4.handleTapReactionOverflow;
|
|
const handleCopyText = property4.handleCopyText;
|
|
const handleTapOpTag = property4.handleTapOpTag;
|
|
const handleTapTag = property4.handleTapTag;
|
|
const handleMediaAttachmentPlaybackEnded = property4.handleMediaAttachmentPlaybackEnded;
|
|
const handleMediaAttachmentPlaybackStarted = property4.handleMediaAttachmentPlaybackStarted;
|
|
const handleVoiceMessagePlaybackFailed = property4.handleVoiceMessagePlaybackFailed;
|
|
const handleTapShowAltTextBinding = handleTapShowAltText;
|
|
const handleTapPostPreviewEmbed = property4.handleTapPostPreviewEmbed;
|
|
const handleTapDismissMediaPostSharePrompt = property4.handleTapDismissMediaPostSharePrompt;
|
|
const handleTapObscuredMediaLearnMore = property4.handleTapObscuredMediaLearnMore;
|
|
const onTapObscuredMediaToggle = property4.onTapObscuredMediaToggle;
|
|
const handleTapSafetyPolicyNoticeEmbed = property4.handleTapSafetyPolicyNoticeEmbed;
|
|
const handleTapSafetySystemNotificationCta = property4.handleTapSafetySystemNotificationCta;
|
|
const handleTapPollAnswer = property4.handleTapPollAnswer;
|
|
const handleTapPollSubmitVote = property4.handleTapPollSubmitVote;
|
|
const handleTapPollAction = property4.handleTapPollAction;
|
|
const handleLongPressPollImage = property4.handleLongPressPollImage;
|
|
const handleTapCtaButton = property4.handleTapCtaButton;
|
|
const handleMessageAccessibilityAction = property4.handleMessageAccessibilityAction;
|
|
const handleTapForwardFooter = property4.handleTapForwardFooter;
|
|
const handleTapInlineForward = property4.handleTapInlineForward;
|
|
const handleTapClanTagChiplet = property4.handleTapClanTagChiplet;
|
|
const handleTapContentInventoryEntryEmbed = property4.handleTapContentInventoryEntryEmbed;
|
|
const handleTapCheckpointCard = property4.handleTapCheckpointCard;
|
|
const handleTapSoundmoji = property4.handleTapSoundmoji;
|
|
const handleTapAppMessageEmbed = property4.handleTapAppMessageEmbed;
|
|
const handleTapPreviewSharedClientTheme = property4.handleTapPreviewSharedClientTheme;
|
|
const handleSharedClientThemeViewed = property4.handleSharedClientThemeViewed;
|
|
const children = a0.children;
|
|
const HACK_fixModalInteraction = a0.HACK_fixModalInteraction;
|
|
const chatAndroid = <ChatAndroid ref={value12} style={style} inverted channelId={channelId} alwaysRespectKeyboard={alwaysRespectKeyboard} onChatScrollPosition={handleScrollPosition} onTapImage={handleTapImage} onTapChannel={handleTapChannel} onLongPressChannel={handleLongPressChannel} onTapAttachmentLink={handleTapAttachmentLink} onLongPressAttachmentLink={handleLongPressAttachmentLink} onTapCall={handleTapCall} onTapMention={handleTapMention} onTapCommandMention={handleTapCommandMention} onLongPressCommandMention={handleLongPressCommandMention} onTapGameMention={handleTapGameMention} onTapLink={handleTapLink} onLongPressLink={handleLongPressLink} onTapReaction={handleTapReaction} onLongPressReaction={handleLongPressReaction} onTapAvatar={handleTapAvatar} onTapUsername={handleTapUsername} onLongPressUsername={handleLongPressUsername} onTapSticker={handleOpenSticker} onLongPressSticker={onLongPressSticker} onLongPressMessage={handleLongPressMessage} onInitiateReply={handleInitiateReply} onInitiateEdit={handleInitiateEdit} onInitiateThread={handleInitiateThread} onTapMessage={handleTapMessage} onDoubleTapMessage={handleDoubleTapMessage} onTapSeparator={handleTapSeparator} onTapInviteEmbed={handleTapInviteEmbed} onTapInviteEmbedAccept={handleTapInviteEmbedAccept} onTapJoinActivity={handleTapJoinActivity} onTapJoinRichPresence={handleTapJoinRichPresence} onPressKey={onPressKey} animateEmoji={animateEmoji} onTapGiftCodeEmbed={handleTapGiftCodeEmbed} onTapCancelUploadItem={handleTapCancelUploadItem} onTapMessageReply={handleTapReply} onTapSummary={handleTapSummary} onTapSummaryJump={handleTapSummaryJump} onTapGiftCodeAccept={handleTapGiftCodeAccept} onTapReferralRedeem={handleTapReferralRedeem} onGiftIntentCardViewed={handleGiftIntentCardViewed} onTapGiftIntentPrimaryCta={handleTapGiftIntentPrimaryCta} onTapGiftIntentSecondaryCta={handleTapGiftIntentSecondaryCta} onTapThreadEmbed={handleTapThreadEmbed} onTapEmoji={handleTapEmoji} onTapTimestamp={handleTapTimestamp} onTapInlineCode={handleTapInlineCode} onTapRoleIcon={handleTapRoleIcon} onTapVoiceChannelBadge={handleTapVoiceChannelBadge} onTapGameIcon={handleTapGameIcon} onTapSuppressNotificationsIcon={handleTapSuppressNotificationsIcon} onTapConnectionsRoleTag={handleTapConnectionsRoleTag} onTapTimeoutIcon={handleTapTimeoutIcon} onTapButtonActionComponent={handleTapButtonActionComponent} onTapSelectActionComponent={handleTapSelectActionComponent} onTapWelcomeReply={handleTapWelcomeReply} onTapInviteToSpeak={handleTapInviteToSpeak} onTapAutoModerationActions={handleTapAutoModerationActions} onTapAutoModerationFeedback={handleTapAutoModerationFeedback} onTapFollowForumPost={handleTapFollowForumPost} onTapShareForumPost={handleTapShareForumPost} onTapReactionOverflow={handleTapReactionOverflow} onTapNavBar={value21} onTapCopyText={handleCopyText} onTapOpTag={handleTapOpTag} onTapTag={handleTapTag} onMediaAttachmentPlaybackEnded={handleMediaAttachmentPlaybackEnded} onMediaAttachmentPlaybackStarted={handleMediaAttachmentPlaybackStarted} onVoiceMessagePlaybackFailed={handleVoiceMessagePlaybackFailed} onTapShowAltText={handleTapShowAltTextBinding} onTapPostPreviewEmbed={handleTapPostPreviewEmbed} onTapDismissMediaPostSharePrompt={handleTapDismissMediaPostSharePrompt} onTapObscuredMediaLearnMore={handleTapObscuredMediaLearnMore} onTapObscuredMediaToggle={onTapObscuredMediaToggle} onTapSafetyPolicyNoticeEmbed={handleTapSafetyPolicyNoticeEmbed} onTapSafetySystemNotificationCta={handleTapSafetySystemNotificationCta} onTapPollAnswer={handleTapPollAnswer} onTapPollSubmitVote={handleTapPollSubmitVote} onTapPollAction={handleTapPollAction} onLongPressPollImage={handleLongPressPollImage} onTapCtaButton={handleTapCtaButton} onMessageAccessibilityAction={handleMessageAccessibilityAction} onTapForwardFooter={handleTapForwardFooter} onTapInlineForward={handleTapInlineForward} onTapClanTagChiplet={handleTapClanTagChiplet} onTapContentInventoryEntryEmbed={handleTapContentInventoryEntryEmbed} onTapCheckpointCard={handleTapCheckpointCard} onTapSoundmoji={handleTapSoundmoji} onTapAppMessageEmbed={handleTapAppMessageEmbed} onTapPreviewSharedClientTheme={handleTapPreviewSharedClientTheme} onSharedClientThemeViewed={handleSharedClientThemeViewed} children={children} HACK_fixModalInteraction={HACK_fixModalInteraction} onTapTableView={onTapTableView} onFirstLayout={function({nativeEvent}) {
|
|
var firstVisibleMessageIndex = nativeEvent.firstVisibleMessageIndex;
|
|
var lastVisibleMessageIndex = nativeEvent.lastVisibleMessageIndex;
|
|
var firstVisibleMessagePercentVisible = nativeEvent.firstVisibleMessagePercentVisible;
|
|
nativeEvent = nativeEvent.lastVisibleMessagePercentVisible;
|
|
var handleVisibleMessagesChange_86680Binding = handleVisibleMessagesChange_86680;
|
|
var object = {firstVisibleMessageRowIndex: firstVisibleMessageIndex,
|
|
lastVisibleMessageRowIndex: lastVisibleMessageIndex,
|
|
firstVisibleMessagePercentVisible: firstVisibleMessagePercentVisible,
|
|
lastVisibleMessagePercentVisible: nativeEvent};
|
|
object.source = require(dependencyMap[41]).QuestsVisibleMessagesChangedSource.FIRST_LAYOUT;
|
|
handleVisibleMessagesChange_86680Binding(object);
|
|
}} onMediaPlayFinishedAnalytics={handleMediaPlayFinishedAnalytics_86670} onMessageVisibilityChanged={function({nativeEvent}) {
|
|
var firstVisibleMessageIndex = nativeEvent.firstVisibleMessageIndex;
|
|
var lastVisibleMessageIndex = nativeEvent.lastVisibleMessageIndex;
|
|
var firstVisibleMessagePercentVisible = nativeEvent.firstVisibleMessagePercentVisible;
|
|
nativeEvent = nativeEvent.lastVisibleMessagePercentVisible;
|
|
var handleVisibleMessagesChange_86680Binding = handleVisibleMessagesChange_86680;
|
|
var object = {firstVisibleMessageRowIndex: firstVisibleMessageIndex,
|
|
lastVisibleMessageRowIndex: lastVisibleMessageIndex,
|
|
firstVisibleMessagePercentVisible: firstVisibleMessagePercentVisible,
|
|
lastVisibleMessagePercentVisible: nativeEvent};
|
|
object.source = require(dependencyMap[41]).QuestsVisibleMessagesChangedSource.VISIBILITY_CHANGED;
|
|
handleVisibleMessagesChange_86680Binding(object);
|
|
}} />;
|
|
const ChatTTITracker = (require(11524) /* metro dependency 11524: ChatTTITracker */).ChatTTITracker;
|
|
return (
|
|
<>
|
|
{chatAndroid}
|
|
<ChatTTITracker messages={a0.messages} />
|
|
</>
|
|
);
|
|
}
|
|
|
|
function _fun86711(a0, a1) { // fn#86711, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11527:26251, offset: 0x01f9d4f9, size: 117 bytes, params: 3, frame: 19
|
|
var r0;
|
|
var value;
|
|
const value2 = (importDefault(628) /* metro dependency 628: shallowEqual */)(a0, a1, ['interactionStates'],
|
|
{shouldWarnLargeObjects: false});
|
|
if (value2) {
|
|
value = importDefault(628) /* metro dependency 628: shallowEqual */;
|
|
value = !!value(a0.interactionStates, a1.interactionStates);
|
|
r0 = value;
|
|
} else {
|
|
r0 = !!value2;
|
|
}
|
|
return r0;
|
|
}
|
|
|
|
function _fun86673() { // fn#86673, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11527:1951, offset: 0x01f9ae06, size: 47 bytes, params: 1, frame: 11
|
|
let value = environment.__proto__;
|
|
value = importDefault(11342) /* metro dependency 11342: ChatManager */;
|
|
const value2 = Object.create(value.prototype, {constructor: {value: value}});
|
|
value = new value();
|
|
return value instanceof Object ? value : value2;
|
|
}
|
|
|
|
function _fun86675(a0) { // fn#86675, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11527:2220, offset: 0x01f9ae35, size: 153 bytes, params: 2, frame: 22
|
|
const rows = a0.rows;
|
|
const hasMoreMessagesAfter = a0.hasMoreMessagesAfter;
|
|
const scrollData = a0.scrollData;
|
|
const HACK_iOSForceAnimations = a0.HACK_iOSForceAnimations;
|
|
const forceReload = a0.forceReload;
|
|
const isAnimated = a0.isAnimated;
|
|
let value = environment.__proto__;
|
|
const isLoadingAtTop_86671Binding = isLoadingAtTop_86671;
|
|
const rows2 = a0.rows;
|
|
const binding = env0_7;
|
|
const isLoadingAtTop_866712 = isLoadingAtTop_86671Binding(rows2, binding.current);
|
|
value = importDefault(9850) /* metro dependency 9850: NativeChatUtils */;
|
|
value.updateRows(env0_11.current, {rows: rows, isLoadingAtTop: isLoadingAtTop_866712, scrollData: scrollData,
|
|
HACK_iOSForceAnimations: HACK_iOSForceAnimations, forceReload: forceReload, isAnimated: isAnimated});
|
|
binding.current = hasMoreMessagesAfter;
|
|
}
|
|
|
|
function _fun86676() { // fn#86676, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11527:2566, offset: 0x01f9aece, size: 78 bytes, params: 1, frame: 15
|
|
let r0 = env0_0.canChat && PermissionStore.can(Permissions.ADD_REACTIONS, env0_0.channel);
|
|
r0 = !r0 ? env0_0.channel.isPrivate() : r0;
|
|
return r0;
|
|
}
|
|
|
|
function _fun86677(a0) { // fn#86677, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11527:2678, offset: 0x01f9af1c, size: 78 bytes, params: 2, frame: 14
|
|
var environment;
|
|
const env0_0 = a0;
|
|
let value = environment.__proto__;
|
|
value = importDefault(22) /* metro dependency 22 */;
|
|
return value.find(env0_0.messages.toArray(), _fun86678);
|
|
}
|
|
|
|
function _fun86679(a0) { // fn#86679, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11527:2782, offset: 0x01f9af6a, size: 97 bytes, params: 2, frame: 13
|
|
var r0;
|
|
var value2;
|
|
var defaultImport;
|
|
var castChannelIdAsMessageId;
|
|
var binding;
|
|
var value;
|
|
const isForumPost2 = env0_0.channel.isForumPost();
|
|
if (isForumPost2) {
|
|
value2 = environment.__proto__;
|
|
defaultImport = importDefault(21) /* metro dependency 21: SnowflakeUtils */;
|
|
castChannelIdAsMessageId = defaultImport.castChannelIdAsMessageId;
|
|
binding = env0_0;
|
|
value = Reflect.apply(castChannelIdAsMessageId, defaultImport, [binding.channelId]);
|
|
value = value === binding.messages.jumpTargetId;
|
|
r0 = value;
|
|
} else {
|
|
r0 = isForumPost2;
|
|
}
|
|
r0 = r0 && !a0;
|
|
return r0;
|
|
}
|
|
|
|
function handleVisibleMessagesChange_86680({firstVisibleMessageRowIndex, firstVisibleMessagePercentVisible, lastVisibleMessageRowIndex, lastVisibleMessagePercentVisible, source}) { // fn#86680, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11527:3191, offset: 0x01f9afcb, size: 344 bytes, params: 2, frame: 22
|
|
var handleAnnouncementMessageViewTracking;
|
|
var binding;
|
|
var shouldTrackAnnouncementMessageViews;
|
|
var guildId;
|
|
var channel;
|
|
var handleOfficialMessageViewTracking;
|
|
var shouldTrackOfficialMessageViews;
|
|
var handleRichPresenceInviteEmbedViewTracking;
|
|
var shouldTrackRichPresenceInviteEmbedViews;
|
|
var handleVoiceInviteEmbedViewTracking;
|
|
var shouldTrackVoiceInviteEmbedViews;
|
|
let value = environment.__proto__;
|
|
const visibleMessages = (require(9835) /* metro dependency 9835: MessagesUtils */).getVisibleMessages({firstVisibleMessageRowIndex: firstVisibleMessageRowIndex,
|
|
lastVisibleMessageRowIndex: lastVisibleMessageRowIndex,
|
|
firstVisibleMessagePercentVisible: firstVisibleMessagePercentVisible,
|
|
lastVisibleMessagePercentVisible: lastVisibleMessagePercentVisible, chatManager: env0_1,
|
|
channelId: env0_0.channelId});
|
|
if (!(visibleMessages.length <= 0)) {
|
|
value = require(9484) /* metro dependency 9484: QuestActionCreators */;
|
|
value.questsVisibleMobileMessagesChanged({visibleMessages: visibleMessages, source: source});
|
|
value = require(9854) /* metro dependency 9854: MessageImpressionAnalyticsHelpers */;
|
|
handleAnnouncementMessageViewTracking = value.handleAnnouncementMessageViewTracking;
|
|
binding = env0_0;
|
|
shouldTrackAnnouncementMessageViews = binding.shouldTrackAnnouncementMessageViews;
|
|
guildId = binding.guildId;
|
|
channel = binding.channel;
|
|
Reflect.apply(handleAnnouncementMessageViewTracking, value, [visibleMessages,
|
|
shouldTrackAnnouncementMessageViews,
|
|
guildId, channel]);
|
|
value = require(9854) /* metro dependency 9854: MessageImpressionAnalyticsHelpers */;
|
|
handleOfficialMessageViewTracking = value.handleOfficialMessageViewTracking;
|
|
shouldTrackOfficialMessageViews = binding.shouldTrackOfficialMessageViews;
|
|
guildId = binding.guildId;
|
|
channel = binding.channel;
|
|
Reflect.apply(handleOfficialMessageViewTracking, value, [visibleMessages, shouldTrackOfficialMessageViews,
|
|
guildId,
|
|
channel]);
|
|
value = require(9854) /* metro dependency 9854: MessageImpressionAnalyticsHelpers */;
|
|
handleRichPresenceInviteEmbedViewTracking = value.handleRichPresenceInviteEmbedViewTracking;
|
|
shouldTrackRichPresenceInviteEmbedViews = binding.shouldTrackRichPresenceInviteEmbedViews;
|
|
guildId = binding.guildId;
|
|
channel = binding.channel;
|
|
Reflect.apply(handleRichPresenceInviteEmbedViewTracking, value, [visibleMessages,
|
|
shouldTrackRichPresenceInviteEmbedViews, guildId, channel]);
|
|
value = require(9854) /* metro dependency 9854: MessageImpressionAnalyticsHelpers */;
|
|
handleVoiceInviteEmbedViewTracking = value.handleVoiceInviteEmbedViewTracking;
|
|
shouldTrackVoiceInviteEmbedViews = binding.shouldTrackVoiceInviteEmbedViews;
|
|
guildId = binding.guildId;
|
|
channel = binding.channel;
|
|
Reflect.apply(handleVoiceInviteEmbedViewTracking, value, [visibleMessages, shouldTrackVoiceInviteEmbedViews,
|
|
guildId, channel]);
|
|
}
|
|
}
|
|
|
|
function findMessageIndex_86681(a0) { // fn#86681, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11527:4078, offset: 0x01f9b123, size: 69 bytes, params: 2, frame: 14
|
|
var value;
|
|
var findMessageRowIndex;
|
|
var binding;
|
|
if (a0 != null) {
|
|
value = environment.__proto__;
|
|
value = require(9849) /* metro dependency 9849: computeScrollData */;
|
|
findMessageRowIndex = value.findMessageRowIndex;
|
|
binding = env0_1;
|
|
return Reflect.apply(findMessageRowIndex, value, [binding.getPreviousRows(), a0]);
|
|
}
|
|
}
|
|
|
|
function fetchMoreBefore() { // fn#86682, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11527:4264, offset: 0x01f9b168, size: 122 bytes, params: 1, frame: 15
|
|
var value2;
|
|
var defaultImport;
|
|
var fetchMessages;
|
|
var object2;
|
|
var value3;
|
|
var value;
|
|
const {channelId, messages} = env0_0;
|
|
if (messages.hasMoreBefore && !messages.loadingMore) {
|
|
value = environment.__proto__;
|
|
value2 = undefined;
|
|
defaultImport = importDefault(7067) /* metro dependency 7067: MessageActionCreators */;
|
|
fetchMessages = defaultImport.fetchMessages;
|
|
object2 = {channelId: channelId};
|
|
value3 = messages.first();
|
|
object2.before = value3 == null ? value2 : value3.id;
|
|
object2.limit = MAX_MESSAGES_PER_CHANNEL;
|
|
Reflect.apply(fetchMessages, defaultImport, [object2]);
|
|
}
|
|
}
|
|
|
|
function fetchMoreAfter() { // fn#86683, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11527:4436, offset: 0x01f9b1e2, size: 122 bytes, params: 1, frame: 15
|
|
var value2;
|
|
var defaultImport;
|
|
var fetchMessages;
|
|
var object2;
|
|
var value3;
|
|
var value;
|
|
const {channelId, messages} = env0_0;
|
|
if (messages.hasMoreAfter && !messages.loadingMore) {
|
|
value = environment.__proto__;
|
|
value2 = undefined;
|
|
defaultImport = importDefault(7067) /* metro dependency 7067: MessageActionCreators */;
|
|
fetchMessages = defaultImport.fetchMessages;
|
|
object2 = {channelId: channelId};
|
|
value3 = messages.last();
|
|
object2.after = value3 == null ? value2 : value3.id;
|
|
object2.limit = MAX_MESSAGES_PER_CHANNEL;
|
|
Reflect.apply(fetchMessages, defaultImport, [object2]);
|
|
}
|
|
}
|
|
|
|
function _fun86684() { // fn#86684, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11527:5459, offset: 0x01f9b25c, size: 62 bytes, params: 1, frame: 11
|
|
var environment;
|
|
let value = environment.__proto__;
|
|
const MessagesHandlers = (require(11347) /* metro dependency 11347: MessagesHandlers */).MessagesHandlers;
|
|
value = Object.create(MessagesHandlers.prototype, {constructor: {value: MessagesHandlers}});
|
|
const messagesHandlers = new MessagesHandlers(_fun86685);
|
|
return messagesHandlers instanceof Object ? messagesHandlers : value;
|
|
}
|
|
|
|
function _fun86686() { // fn#86686, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11527:5532, offset: 0x01f9b2a8, size: 36 bytes, params: 1, frame: 12
|
|
const env0_0 = env1_3(_fun86688);
|
|
return _fun86691;
|
|
}
|
|
|
|
function scrollToBottom_86692() { // fn#86692, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11527:6032, offset: 0x01f9b46a, size: 116 bytes, params: 1, frame: 16
|
|
const value = a0;
|
|
let r4 = !(value !== undefined) || value;
|
|
const handleScrollCallbacksBinding = handleScrollCallbacks;
|
|
const object2 = {};
|
|
const Date = global.Date;
|
|
object2.eventTimestamp = Date.now();
|
|
object2.isAtBottom = true;
|
|
handleScrollCallbacksBinding(object2);
|
|
const defaultImport = importDefault(9850) /* metro dependency 9850: NativeChatUtils */;
|
|
const scrollToBottom = defaultImport.scrollToBottom;
|
|
const current = env0_11.current;
|
|
r4 = r4 && !env0_0.useReducedMotion;
|
|
Reflect.apply(scrollToBottom, defaultImport, [current, r4]);
|
|
}
|
|
|
|
function jumpToPresent_86693() { // fn#86693, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11527:6160, offset: 0x01f9b4de, size: 193 bytes, params: 1, frame: 16
|
|
var value;
|
|
const {messages, channel} = env0_0;
|
|
const jumpReturnTargetId = messages.jumpReturnTargetId;
|
|
if (jumpReturnTargetId == null) {
|
|
if (!messages.loadingMore) {
|
|
if (messages.hasMoreAfter) {
|
|
value = environment.__proto__;
|
|
(importDefault(7067) /* metro dependency 7067: MessageActionCreators */).fetchMessages({channelId: channel.id,
|
|
|
|
|
|
limit: MAX_MESSAGES_PER_CHANNEL, jump: {present: true}});
|
|
} else {
|
|
scrollToBottom_86692();
|
|
}
|
|
}
|
|
} else {
|
|
value = environment.__proto__;
|
|
value = importDefault(7067) /* metro dependency 7067: MessageActionCreators */;
|
|
value.jumpToMessage({channelId: channel.id, messageId: jumpReturnTargetId, flash: true});
|
|
}
|
|
}
|
|
|
|
function scrollToNewMessages_86694() { // fn#86694, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11527:6424, offset: 0x01f9b59f, size: 128 bytes, params: 1, frame: 15
|
|
const value = environment.__proto__;
|
|
const ackMessageId = ReadStateStore.ackMessageId;
|
|
const binding = env0_0;
|
|
(importDefault(7067) /* metro dependency 7067: MessageActionCreators */).jumpToMessage({channelId: binding.channel.id,
|
|
messageId: Reflect.apply(ackMessageId, ReadStateStore, [binding.channel.id]) ?? env0_0.channel.id, offset: 1,
|
|
context: 'Mark As Read'});
|
|
}
|
|
|
|
function clearRowsState(a0) { // fn#86697, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11527:8120, offset: 0x01f9b64a, size: 395 bytes, params: 2, frame: 30
|
|
env0_6.current = false;
|
|
hasHandledScrollRef.current = false;
|
|
isNearBottomRef.current = false;
|
|
isAtBottomRef.current = false;
|
|
isNearTopRef.current = false;
|
|
deceleratingRef.current = false;
|
|
draggingRef.current = false;
|
|
env0_7.current = false;
|
|
let binding = env0_8;
|
|
binding.current = [];
|
|
env0_10.current = false;
|
|
env0_9.current = null;
|
|
binding = env0_12;
|
|
const length = binding.queue.length;
|
|
const size = binding.blockers.size;
|
|
const binding2 = env0_1;
|
|
const getPreviousRows = binding2.getPreviousRows;
|
|
const length2 = Reflect.apply(getPreviousRows, binding2, []).length;
|
|
binding2.clear();
|
|
binding.clear();
|
|
const defaultImport = importDefault(9850) /* metro dependency 9850: NativeChatUtils */;
|
|
const clearRows = defaultImport.clearRows;
|
|
binding = env0_11;
|
|
Reflect.apply(clearRows, defaultImport, [binding.current]);
|
|
const value = importDefault(1216) /* metro dependency 1216: SentryUtilsNative */;
|
|
const addBreadcrumb = value.addBreadcrumb;
|
|
const object2 = {category: 'chat.queue.clear'};
|
|
object2.message = 'clearRows (' + a0 + '): queue=' + length + ' blockers=' + size + ' jsRows=' + length2;
|
|
const chatChangesetUpdateTrackerModule = require(9852) /* metro dependency 9852: ChatChangesetUpdateTracker */;
|
|
const getChangesetIdForChat = chatChangesetUpdateTrackerModule.getChangesetIdForChat;
|
|
object2.data = {reason: a0, changesetUpdateId: Reflect.apply(getChangesetIdForChat,
|
|
chatChangesetUpdateTrackerModule, [binding.current]), queueLength: length, blockers: size,
|
|
chatManagerRows: length2};
|
|
Reflect.apply(addBreadcrumb, value, [object2]);
|
|
}
|
|
|
|
function clearRows_86698() { // fn#86698, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11527:8638, offset: 0x01f9b7d5, size: 53 bytes, params: 1, frame: 15
|
|
clearRowsState('channel-change');
|
|
const updateShouldShowJumpToPresentButtonBinding = updateShouldShowJumpToPresentButton;
|
|
const binding = env0_0;
|
|
updateShouldShowJumpToPresentButtonBinding(binding.channelId, binding.screenIndex, false);
|
|
}
|
|
|
|
function _fun86699() { // fn#86699, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11527:8722, offset: 0x01f9b80a, size: 330 bytes, params: 1, frame: 20
|
|
var environment;
|
|
var object2;
|
|
var jumpTargetId;
|
|
var value2;
|
|
const JumpTypes = (require(4044) /* metro dependency 4044: Client */).JumpTypes;
|
|
var scrollToMessageIdBinding;
|
|
let binding = env0_0;
|
|
const messages = binding.messages;
|
|
var env0_0 = messages;
|
|
const isMessagesReady = binding.isMessagesReady;
|
|
const oldestUnreadMessageId = binding.oldestUnreadMessageId;
|
|
const updateRowsBinding = updateRows;
|
|
if (isMessagesReady) {
|
|
object2 = {};
|
|
jumpTargetId = messages.jumpTargetId;
|
|
object2.scrollToMessageId = jumpTargetId;
|
|
jumpTargetId = messages.jumpTargetId;
|
|
object2.jumpTargetId = jumpTargetId;
|
|
value2 = environment.__proto__;
|
|
object2.jumpType = JumpTypes.INSTANT;
|
|
object2.focusTargetId = messages.focusTargetId;
|
|
object2.hasJumpedToOriginalPost = env0_2;
|
|
updateRowsBinding(object2);
|
|
jumpTargetId = messages.jumpTargetId;
|
|
if (jumpTargetId != null) {
|
|
scrollToMessageIdBinding = scrollToMessageId;
|
|
object2 = {};
|
|
jumpTargetId = messages.jumpTargetId;
|
|
object2.scrollToMessageId = jumpTargetId;
|
|
jumpTargetId = messages.jumpTargetId;
|
|
object2.jumpTargetId = jumpTargetId;
|
|
object2.jumpType = JumpTypes.INSTANT;
|
|
object2.hasJumpedToOriginalPost = env0_2;
|
|
scrollToMessageIdBinding(object2);
|
|
} else if (oldestUnreadMessageId != null) {
|
|
global.setTimeout(_fun86700, 50);
|
|
}
|
|
} else {
|
|
updateRowsBinding({hasJumpedToOriginalPost: env0_2});
|
|
}
|
|
const recordTimings_86667Binding = recordTimings_86667;
|
|
binding = env0_0;
|
|
recordTimings_86667Binding(binding.channelId, binding.messages);
|
|
recordTimings_86667Binding(binding.channelId, binding.messages);
|
|
return function() {
|
|
clearRowsState('unmount');
|
|
};
|
|
}
|
|
|
|
function _fun86702() { // fn#86702, offset: 0x01f9b9c6, size: 11 bytes, params: 1, frame: 1
|
|
return _fun86703;
|
|
}
|
|
|
|
function _fun86704() { // fn#86704, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11527:9569, offset: 0x01f9b9f7, size: 3572 bytes, params: 1, frame: 64
|
|
var environment;
|
|
var r5;
|
|
var r3;
|
|
var r9;
|
|
var r18;
|
|
var r21;
|
|
var r50;
|
|
var r37;
|
|
var r47;
|
|
var r31;
|
|
var fontId;
|
|
var fontId2;
|
|
var r6;
|
|
var r10;
|
|
var r24;
|
|
var r16;
|
|
var messages;
|
|
var messages2;
|
|
var channelId;
|
|
var channelId2;
|
|
var value3;
|
|
var value4;
|
|
var channelId3;
|
|
var clearRows;
|
|
var value5;
|
|
var defaultImport;
|
|
var clearChannelDimensions;
|
|
var startOrCancelChannelLatestMessagesLoad;
|
|
var hasJumpedToOriginalPost;
|
|
var firstIgnoredScrollEventTimestampRef2;
|
|
var isMessagesAckable;
|
|
var isMessagesAckable2;
|
|
var hasHandledScrollRefBinding;
|
|
var value6;
|
|
var shouldJumpToOriginalPost;
|
|
var scrollToTop2;
|
|
var prevMessages;
|
|
var currentMessages;
|
|
var setHasJumpedToOriginalPost;
|
|
var value7;
|
|
var jumpSequenceId;
|
|
var jumpSequenceId2;
|
|
var isMessagesReady;
|
|
var isMessagesCached;
|
|
var value8;
|
|
var value9;
|
|
var defaultImport2;
|
|
var binding3;
|
|
var getPreviousMessages;
|
|
var value10;
|
|
var scrollToMessageId;
|
|
var jumpTargetId;
|
|
var jumpType;
|
|
var minimizeScrolling;
|
|
var focusTargetId;
|
|
var shouldInitialScroll;
|
|
var computeForceReloadBinding;
|
|
var forceReload;
|
|
var binding4;
|
|
var forceReload2;
|
|
var inlineAttachmentMedia;
|
|
var inlineAttachmentMedia2;
|
|
var value11;
|
|
var inlineEmbedMedia;
|
|
var inlineEmbedMedia2;
|
|
var value12;
|
|
var renderEmbeds;
|
|
var renderEmbeds2;
|
|
var value13;
|
|
var renderReactions;
|
|
var renderReactions2;
|
|
var value14;
|
|
var animateEmoji;
|
|
var animateEmoji2;
|
|
var value15;
|
|
var animateStickers;
|
|
var animateStickers2;
|
|
var value16;
|
|
var gifAutoPlay;
|
|
var gifAutoPlay2;
|
|
var value17;
|
|
var timestampHourCycle;
|
|
var timestampHourCycle2;
|
|
var value18;
|
|
var containerWidth;
|
|
var containerWidth2;
|
|
var value19;
|
|
var guildSystemChannelFlags;
|
|
var guildSystemChannelFlags2;
|
|
var value20;
|
|
var userSettingsLocale;
|
|
var userSettingsLocale2;
|
|
var value21;
|
|
var roleStyle;
|
|
var roleStyle2;
|
|
var value22;
|
|
var officialMessageStyle;
|
|
var officialMessageStyle2;
|
|
var value23;
|
|
var canSendMessages;
|
|
var canSendMessages2;
|
|
var value24;
|
|
var showPushFeedback;
|
|
var showPushFeedback2;
|
|
var value25;
|
|
var selectedSummary;
|
|
var selectedSummary2;
|
|
var value26;
|
|
var shouldObscureSpoiler;
|
|
var shouldObscureSpoiler2;
|
|
var value27;
|
|
var explicitMediaFalsePositiveInfo;
|
|
var explicitMediaFalsePositiveInfo2;
|
|
var value28;
|
|
var isStaff;
|
|
var isStaff2;
|
|
var value29;
|
|
var isAgeVerified;
|
|
var isAgeVerified2;
|
|
var value30;
|
|
var value31;
|
|
var displayNameStylesEnabled;
|
|
var displayNameStylesEnabled2;
|
|
var value32;
|
|
var resolvingGiftCodes;
|
|
var resolvingGiftCodes2;
|
|
var value33;
|
|
var resolvedGiftCodes;
|
|
var resolvedGiftCodes2;
|
|
var value34;
|
|
var acceptingGiftCodes;
|
|
var acceptingGiftCodes2;
|
|
var value35;
|
|
var uploads;
|
|
var uploads2;
|
|
var defaultImport3;
|
|
var interactionStates;
|
|
var interactionStates2;
|
|
var value36;
|
|
var channelPolls;
|
|
var channelPolls2;
|
|
var value37;
|
|
var messageReferencePolls;
|
|
var messageReferencePolls2;
|
|
var value38;
|
|
var interactionComponentStatesVersion;
|
|
var interactionComponentStatesVersion2;
|
|
var value39;
|
|
var shouldDisableInteractiveComponents;
|
|
var shouldDisableInteractiveComponents2;
|
|
var communicationDisabledVersion;
|
|
var communicationDisabledVersion2;
|
|
var value40;
|
|
var messageAuthorMembers;
|
|
var messageAuthorMembers2;
|
|
var value41;
|
|
var failedMessagesVersion;
|
|
var failedMessagesVersion2;
|
|
var value42;
|
|
var renderCommunicationDisabled;
|
|
var renderCommunicationDisabled2;
|
|
var value43;
|
|
var forwardGuildsVersion;
|
|
var forwardGuildsVersion2;
|
|
var channel;
|
|
var isForumPost;
|
|
var isForumPost2;
|
|
var isFollowingForumPost;
|
|
var isFollowingForumPost2;
|
|
var value44;
|
|
var showMediaPostSharePrompt;
|
|
var showMediaPostSharePrompt2;
|
|
var value45;
|
|
var unloadedContentEntryMessageIds;
|
|
var unloadedContentEntryMessageIds2;
|
|
var value46;
|
|
var invalidApplicationIds;
|
|
var invalidApplicationIds2;
|
|
var value47;
|
|
var activityInstanceIds;
|
|
var activityInstanceIds2;
|
|
var value48;
|
|
var activityParticipants;
|
|
var activityParticipants2;
|
|
var value49;
|
|
var applicationAssetFetchingIds;
|
|
var applicationAssetFetchingIds2;
|
|
var value50;
|
|
var activityInstancePresenceDetails;
|
|
var activityInstancePresenceDetails2;
|
|
var value51;
|
|
var messagesWithActivitiesLaunching;
|
|
var messagesWithActivitiesLaunching2;
|
|
var value52;
|
|
var moduleValue;
|
|
var areArraysShallowEqual;
|
|
var activityInviteMessageIds;
|
|
var activityInviteMessageIds2;
|
|
var value53;
|
|
var moduleValue2;
|
|
var resolvedReferralTrialOfferIds;
|
|
var resolvedReferralTrialOfferIds2;
|
|
var value54;
|
|
var value55;
|
|
var referralTrialOfferId;
|
|
var referralTrialOfferId2;
|
|
var value56;
|
|
var isPremiumTier2User;
|
|
var isPremiumTier2User2;
|
|
var value57;
|
|
var guildInviteColorsFetched;
|
|
var guildInviteColorsFetched2;
|
|
var value58;
|
|
var guildEmojis;
|
|
var guildEmojis2;
|
|
var value59;
|
|
var selfActivities;
|
|
var selfActivities2;
|
|
var value60;
|
|
var currentClientVoiceChannelId;
|
|
var currentClientVoiceChannelId2;
|
|
var value61;
|
|
var voiceStateChannelIdSummaryForGuild;
|
|
var voiceStateChannelIdSummaryForGuild2;
|
|
var value62;
|
|
var voiceStatePrivateChannelId;
|
|
var voiceStatePrivateChannelId2;
|
|
var value63;
|
|
var activityLaunchJoinStates;
|
|
var activityLaunchJoinStates2;
|
|
var value64;
|
|
var authorizedAppsTokens;
|
|
var authorizedAppsTokens2;
|
|
var value65;
|
|
var displayNameStylesEnabled3;
|
|
var currentUserDisplayNameStyles;
|
|
var fontId3;
|
|
var value66;
|
|
var moduleValue3;
|
|
var fetchingSkuIds;
|
|
var fetchingSkuIds2;
|
|
var value67;
|
|
var voiceInviteDataByChannelId;
|
|
var voiceInviteDataByChannelId2;
|
|
var value68;
|
|
var messages3;
|
|
var messages4;
|
|
var editingMessageId;
|
|
var editingMessageId2;
|
|
var replyingMessageId;
|
|
var replyingMessageId2;
|
|
var messageAuthorActivities;
|
|
var messageAuthorActivities2;
|
|
var oldestUnreadMessageId;
|
|
var oldestUnreadMessageId2;
|
|
var invites;
|
|
var invites2;
|
|
var appDirectoryEmbedApplications;
|
|
var appDirectoryEmbedApplications2;
|
|
var invalidAppDirectoryEmbedApplicationIds;
|
|
var invalidAppDirectoryEmbedApplicationIds2;
|
|
var appDirectoryEmbedApplicationFetchStates;
|
|
var appDirectoryEmbedApplicationFetchStates2;
|
|
var guildTemplates;
|
|
var guildTemplates2;
|
|
var buildOverrides;
|
|
var buildOverrides2;
|
|
var experimentEmbeds;
|
|
var experimentEmbeds2;
|
|
var quests;
|
|
var quests2;
|
|
var isFetchingCurrentQuests;
|
|
var isFetchingCurrentQuests2;
|
|
var participantsLength;
|
|
var participantsLength2;
|
|
var isMessagesReady2;
|
|
var channelThreadsVersion;
|
|
var channelThreadsVersion2;
|
|
var rsvpVersion;
|
|
var rsvpVersion2;
|
|
var repliedIds;
|
|
var repliedIds2;
|
|
var hasLoadedExperiments;
|
|
var hasLoadedExperiments2;
|
|
var isMessageRequest;
|
|
var isMessageRequest2;
|
|
var isSpamMessageRequest;
|
|
var isSpamMessageRequest2;
|
|
var currentUserCommunicationDisabled;
|
|
var currentUserCommunicationDisabled2;
|
|
var userSettingsLocale3;
|
|
var selectedSummary3;
|
|
var showPushFeedback3;
|
|
var cacheStoreLoaded;
|
|
var cacheStoreLoaded2;
|
|
var androidKeyboardHeight;
|
|
var androidKeyboardHeight2;
|
|
var mediaPostPreviewEmbeds;
|
|
var mediaPostPreviewEmbeds2;
|
|
var shouldObscureSpoiler3;
|
|
var shouldDisableInteractiveComponents3;
|
|
var threadStartingReferenceMessage;
|
|
var threadStartingReferenceMessage2;
|
|
var recordTimings_86667Binding;
|
|
var Set;
|
|
var prototype;
|
|
var value69;
|
|
var set;
|
|
var value70;
|
|
var editingMessageId3;
|
|
var add;
|
|
var replyingMessageId3;
|
|
var isMessagesReady3;
|
|
var isCallActive;
|
|
var isCallActive2;
|
|
var participantsLength3;
|
|
var defaultImport4;
|
|
var find;
|
|
var messages5;
|
|
var toArray;
|
|
var value71;
|
|
var reverse;
|
|
var value72;
|
|
var value73;
|
|
var id;
|
|
var channelThreadsVersion3;
|
|
var rsvpVersion3;
|
|
var repliedIds3;
|
|
var hasLoadedExperiments3;
|
|
var value74;
|
|
var value75;
|
|
var moduleValue4;
|
|
var getVoiceChannelIdChangedAuthorIds;
|
|
var value76;
|
|
var messages6;
|
|
var forEach;
|
|
var channelId4;
|
|
var value77;
|
|
var suppressRowAnimationSequenceId;
|
|
var suppressRowAnimationSequenceId2;
|
|
var value78;
|
|
var updateRowsBinding;
|
|
let binding = env0_36;
|
|
let current = binding.current;
|
|
const props = current.props;
|
|
const env0_0 = props;
|
|
const shouldForceRender = current.shouldForceRender;
|
|
let object2 = {};
|
|
const binding2 = env0_0;
|
|
object2.props = binding2;
|
|
object2.shouldForceRender = env0_4;
|
|
binding.current = object2;
|
|
const currentUserId = binding2.currentUserId;
|
|
const value2 = null;
|
|
reducibleJoin177: while (true) {
|
|
if (value2 == currentUserId) {
|
|
break reducibleJoin177;
|
|
}
|
|
binding = env0_0;
|
|
messages = binding.messages;
|
|
messages2 = props.messages;
|
|
channelId = props.channelId;
|
|
channelId2 = binding.channelId;
|
|
value3 = channelId !== channelId2;
|
|
reducibleJoin3: while (true) {
|
|
if (value3) {
|
|
env0_3(false);
|
|
break reducibleJoin3;
|
|
}
|
|
break reducibleJoin3;
|
|
}
|
|
value4 = !value3;
|
|
reducibleJoin5: while (true) {
|
|
if (value3) {
|
|
r5 = value4;
|
|
break reducibleJoin5;
|
|
}
|
|
binding = env0_2;
|
|
r5 = binding;
|
|
break reducibleJoin5;
|
|
}
|
|
channelId = props.channelId;
|
|
binding = env0_0;
|
|
channelId3 = binding.channelId;
|
|
object2 = {};
|
|
object2.clearRows = clearRows_86698;
|
|
object2.startOrCancelChannelLatestMessagesLoad = startOrCancelLatestMessagesLoad;
|
|
object2.hasJumpedToOriginalPost = r5;
|
|
object2.firstIgnoredScrollEventTimestampRef = firstIgnoredScrollEventTimestampRef;
|
|
reducibleJoin7: while (true) {
|
|
if (channelId === channelId3) {
|
|
break reducibleJoin7;
|
|
}
|
|
clearRows = object2.clearRows;
|
|
Reflect.apply(clearRows, object2, []);
|
|
value5 = environment.__proto__;
|
|
defaultImport = importDefault(9764) /* metro dependency 9764: DimensionActionCreators */;
|
|
clearChannelDimensions = defaultImport.clearChannelDimensions;
|
|
Reflect.apply(clearChannelDimensions, defaultImport, [channelId3]);
|
|
startOrCancelChannelLatestMessagesLoad = object2.startOrCancelChannelLatestMessagesLoad;
|
|
hasJumpedToOriginalPost = object2.hasJumpedToOriginalPost;
|
|
Reflect.apply(startOrCancelChannelLatestMessagesLoad, object2, [hasJumpedToOriginalPost]);
|
|
firstIgnoredScrollEventTimestampRef2 = object2.firstIgnoredScrollEventTimestampRef;
|
|
firstIgnoredScrollEventTimestampRef2.current = undefined;
|
|
break reducibleJoin7;
|
|
}
|
|
isMessagesAckable = props.isMessagesAckable;
|
|
isMessagesAckable2 = binding.isMessagesAckable;
|
|
hasHandledScrollRefBinding = hasHandledScrollRef;
|
|
value6 = !isMessagesAckable;
|
|
r3 = isMessagesAckable ? value6 : isMessagesAckable2;
|
|
reducibleJoin10: while (true) {
|
|
if (r3) {
|
|
hasHandledScrollRefBinding.current = false;
|
|
break reducibleJoin10;
|
|
}
|
|
break reducibleJoin10;
|
|
}
|
|
object2 = {shouldJumpToOriginalPost: env0_14, hasJumpedToOriginalPost: r5};
|
|
object2.scrollToTop = scrollToTop;
|
|
object2.prevMessages = messages2;
|
|
object2.currentMessages = messages;
|
|
object2.setHasJumpedToOriginalPost = env0_3;
|
|
shouldJumpToOriginalPost = object2.shouldJumpToOriginalPost;
|
|
hasJumpedToOriginalPost = object2.hasJumpedToOriginalPost;
|
|
scrollToTop2 = object2.scrollToTop;
|
|
prevMessages = object2.prevMessages;
|
|
currentMessages = object2.currentMessages;
|
|
setHasJumpedToOriginalPost = object2.setHasJumpedToOriginalPost;
|
|
value7 = undefined;
|
|
reducibleJoin13: while (true) {
|
|
if (shouldJumpToOriginalPost(hasJumpedToOriginalPost)) {
|
|
scrollToTop2(false);
|
|
jumpSequenceId = prevMessages.jumpSequenceId;
|
|
jumpSequenceId2 = currentMessages.jumpSequenceId;
|
|
if (jumpSequenceId !== jumpSequenceId2) {
|
|
break reducibleJoin13;
|
|
}
|
|
setHasJumpedToOriginalPost(true);
|
|
break reducibleJoin13;
|
|
}
|
|
break reducibleJoin13;
|
|
}
|
|
isMessagesReady = binding.isMessagesReady;
|
|
reducibleJoin15: while (true) {
|
|
if (isMessagesReady) {
|
|
isMessagesCached = env0_0.isMessagesCached;
|
|
value8 = !isMessagesCached;
|
|
r9 = value8;
|
|
break reducibleJoin15;
|
|
}
|
|
r9 = isMessagesReady;
|
|
break reducibleJoin15;
|
|
}
|
|
reducibleJoin17: while (true) {
|
|
if (r9) {
|
|
isMessagesCached = props.isMessagesCached;
|
|
r9 = isMessagesCached;
|
|
break reducibleJoin17;
|
|
}
|
|
break reducibleJoin17;
|
|
}
|
|
value9 = environment.__proto__;
|
|
defaultImport2 = importDefault(11333) /* metro dependency 11333: getMessageJumpData */;
|
|
binding = env0_0;
|
|
current = isAtBottomRef.current;
|
|
binding3 = env0_1;
|
|
getPreviousMessages = binding3.getPreviousMessages;
|
|
value10 = defaultImport2(binding, {isAtBottom: current,
|
|
hasPreviousMessages: value2 != Reflect.apply(getPreviousMessages, binding3, [])}, props);
|
|
scrollToMessageId = value10.scrollToMessageId;
|
|
jumpTargetId = value10.jumpTargetId;
|
|
jumpType = value10.jumpType;
|
|
minimizeScrolling = value10.minimizeScrolling;
|
|
focusTargetId = value10.focusTargetId;
|
|
shouldInitialScroll = value10.shouldInitialScroll;
|
|
computeForceReloadBinding = computeForceReload;
|
|
forceReload = computeForceReloadBinding(props, binding);
|
|
binding4 = env0_4;
|
|
forceReload2 = computeForceReloadBinding(props, binding);
|
|
reducibleJoin19: while (true) {
|
|
if (forceReload2) {
|
|
r18 = forceReload2;
|
|
break reducibleJoin19;
|
|
}
|
|
inlineAttachmentMedia = props.inlineAttachmentMedia;
|
|
inlineAttachmentMedia2 = binding.inlineAttachmentMedia;
|
|
value11 = inlineAttachmentMedia !== inlineAttachmentMedia2;
|
|
r18 = value11;
|
|
break reducibleJoin19;
|
|
}
|
|
reducibleJoin21: while (true) {
|
|
if (r18) {
|
|
break reducibleJoin21;
|
|
}
|
|
inlineEmbedMedia = props.inlineEmbedMedia;
|
|
inlineEmbedMedia2 = binding.inlineEmbedMedia;
|
|
value12 = inlineEmbedMedia !== inlineEmbedMedia2;
|
|
r18 = value12;
|
|
break reducibleJoin21;
|
|
}
|
|
reducibleJoin23: while (true) {
|
|
if (r18) {
|
|
break reducibleJoin23;
|
|
}
|
|
renderEmbeds = props.renderEmbeds;
|
|
renderEmbeds2 = binding.renderEmbeds;
|
|
value13 = renderEmbeds !== renderEmbeds2;
|
|
r18 = value13;
|
|
break reducibleJoin23;
|
|
}
|
|
reducibleJoin25: while (true) {
|
|
if (r18) {
|
|
break reducibleJoin25;
|
|
}
|
|
renderReactions = props.renderReactions;
|
|
renderReactions2 = binding.renderReactions;
|
|
value14 = renderReactions !== renderReactions2;
|
|
r18 = value14;
|
|
break reducibleJoin25;
|
|
}
|
|
reducibleJoin27: while (true) {
|
|
if (r18) {
|
|
break reducibleJoin27;
|
|
}
|
|
animateEmoji = props.animateEmoji;
|
|
animateEmoji2 = binding.animateEmoji;
|
|
value15 = animateEmoji !== animateEmoji2;
|
|
r18 = value15;
|
|
break reducibleJoin27;
|
|
}
|
|
reducibleJoin29: while (true) {
|
|
if (r18) {
|
|
break reducibleJoin29;
|
|
}
|
|
animateStickers = props.animateStickers;
|
|
animateStickers2 = binding.animateStickers;
|
|
value16 = animateStickers !== animateStickers2;
|
|
r18 = value16;
|
|
break reducibleJoin29;
|
|
}
|
|
reducibleJoin31: while (true) {
|
|
if (r18) {
|
|
break reducibleJoin31;
|
|
}
|
|
gifAutoPlay = props.gifAutoPlay;
|
|
gifAutoPlay2 = binding.gifAutoPlay;
|
|
value17 = gifAutoPlay !== gifAutoPlay2;
|
|
r18 = value17;
|
|
break reducibleJoin31;
|
|
}
|
|
reducibleJoin33: while (true) {
|
|
if (r18) {
|
|
break reducibleJoin33;
|
|
}
|
|
timestampHourCycle = props.timestampHourCycle;
|
|
timestampHourCycle2 = binding.timestampHourCycle;
|
|
value18 = timestampHourCycle !== timestampHourCycle2;
|
|
r18 = value18;
|
|
break reducibleJoin33;
|
|
}
|
|
reducibleJoin35: while (true) {
|
|
if (r18) {
|
|
break reducibleJoin35;
|
|
}
|
|
containerWidth = props.containerWidth;
|
|
containerWidth2 = binding.containerWidth;
|
|
value19 = containerWidth !== containerWidth2;
|
|
r18 = value19;
|
|
break reducibleJoin35;
|
|
}
|
|
reducibleJoin37: while (true) {
|
|
if (r18) {
|
|
break reducibleJoin37;
|
|
}
|
|
guildSystemChannelFlags = props.guildSystemChannelFlags;
|
|
guildSystemChannelFlags2 = binding.guildSystemChannelFlags;
|
|
value20 = guildSystemChannelFlags !== guildSystemChannelFlags2;
|
|
r18 = value20;
|
|
break reducibleJoin37;
|
|
}
|
|
reducibleJoin39: while (true) {
|
|
if (r18) {
|
|
break reducibleJoin39;
|
|
}
|
|
userSettingsLocale = props.userSettingsLocale;
|
|
userSettingsLocale2 = binding.userSettingsLocale;
|
|
value21 = userSettingsLocale !== userSettingsLocale2;
|
|
r18 = value21;
|
|
break reducibleJoin39;
|
|
}
|
|
reducibleJoin41: while (true) {
|
|
if (r18) {
|
|
break reducibleJoin41;
|
|
}
|
|
roleStyle = props.roleStyle;
|
|
roleStyle2 = binding.roleStyle;
|
|
value22 = roleStyle !== roleStyle2;
|
|
r18 = value22;
|
|
break reducibleJoin41;
|
|
}
|
|
reducibleJoin43: while (true) {
|
|
if (r18) {
|
|
break reducibleJoin43;
|
|
}
|
|
officialMessageStyle = props.officialMessageStyle;
|
|
officialMessageStyle2 = binding.officialMessageStyle;
|
|
value23 = officialMessageStyle !== officialMessageStyle2;
|
|
r18 = value23;
|
|
break reducibleJoin43;
|
|
}
|
|
reducibleJoin45: while (true) {
|
|
if (r18) {
|
|
break reducibleJoin45;
|
|
}
|
|
canSendMessages = props.canSendMessages;
|
|
canSendMessages2 = binding.canSendMessages;
|
|
value24 = canSendMessages !== canSendMessages2;
|
|
r18 = value24;
|
|
break reducibleJoin45;
|
|
}
|
|
reducibleJoin47: while (true) {
|
|
if (r18) {
|
|
break reducibleJoin47;
|
|
}
|
|
showPushFeedback = props.showPushFeedback;
|
|
showPushFeedback2 = binding.showPushFeedback;
|
|
value25 = showPushFeedback !== showPushFeedback2;
|
|
r18 = value25;
|
|
break reducibleJoin47;
|
|
}
|
|
reducibleJoin49: while (true) {
|
|
if (r18) {
|
|
break reducibleJoin49;
|
|
}
|
|
selectedSummary = props.selectedSummary;
|
|
selectedSummary2 = binding.selectedSummary;
|
|
value26 = selectedSummary !== selectedSummary2;
|
|
r18 = value26;
|
|
break reducibleJoin49;
|
|
}
|
|
reducibleJoin51: while (true) {
|
|
if (r18) {
|
|
break reducibleJoin51;
|
|
}
|
|
shouldObscureSpoiler = props.shouldObscureSpoiler;
|
|
shouldObscureSpoiler2 = binding.shouldObscureSpoiler;
|
|
value27 = shouldObscureSpoiler !== shouldObscureSpoiler2;
|
|
r18 = value27;
|
|
break reducibleJoin51;
|
|
}
|
|
reducibleJoin53: while (true) {
|
|
if (r18) {
|
|
break reducibleJoin53;
|
|
}
|
|
explicitMediaFalsePositiveInfo = props.explicitMediaFalsePositiveInfo;
|
|
explicitMediaFalsePositiveInfo2 = binding.explicitMediaFalsePositiveInfo;
|
|
value28 = explicitMediaFalsePositiveInfo !== explicitMediaFalsePositiveInfo2;
|
|
r18 = value28;
|
|
break reducibleJoin53;
|
|
}
|
|
reducibleJoin55: while (true) {
|
|
if (r18) {
|
|
break reducibleJoin55;
|
|
}
|
|
isStaff = props.isStaff;
|
|
isStaff2 = binding.isStaff;
|
|
value29 = isStaff !== isStaff2;
|
|
r18 = value29;
|
|
break reducibleJoin55;
|
|
}
|
|
reducibleJoin57: while (true) {
|
|
if (r18) {
|
|
break reducibleJoin57;
|
|
}
|
|
isAgeVerified = props.isAgeVerified;
|
|
isAgeVerified2 = binding.isAgeVerified;
|
|
value30 = isAgeVerified !== isAgeVerified2;
|
|
r18 = value30;
|
|
break reducibleJoin57;
|
|
}
|
|
reducibleJoin60: while (true) {
|
|
if (r18) {
|
|
break reducibleJoin60;
|
|
}
|
|
value31 = shouldForceRender !== binding4;
|
|
r21 = value31 && binding4;
|
|
r18 = r21;
|
|
break reducibleJoin60;
|
|
}
|
|
reducibleJoin62: while (true) {
|
|
if (r18) {
|
|
break reducibleJoin62;
|
|
}
|
|
displayNameStylesEnabled = props.displayNameStylesEnabled;
|
|
displayNameStylesEnabled2 = binding.displayNameStylesEnabled;
|
|
value32 = displayNameStylesEnabled !== displayNameStylesEnabled2;
|
|
r18 = value32;
|
|
break reducibleJoin62;
|
|
}
|
|
resolvingGiftCodes = props.resolvingGiftCodes;
|
|
resolvingGiftCodes2 = binding.resolvingGiftCodes;
|
|
value33 = resolvingGiftCodes !== resolvingGiftCodes2;
|
|
reducibleJoin64: while (true) {
|
|
if (value33) {
|
|
r50 = value33;
|
|
break reducibleJoin64;
|
|
}
|
|
resolvedGiftCodes = props.resolvedGiftCodes;
|
|
resolvedGiftCodes2 = binding.resolvedGiftCodes;
|
|
value34 = resolvedGiftCodes !== resolvedGiftCodes2;
|
|
r50 = value34;
|
|
break reducibleJoin64;
|
|
}
|
|
reducibleJoin66: while (true) {
|
|
if (r50) {
|
|
break reducibleJoin66;
|
|
}
|
|
acceptingGiftCodes = props.acceptingGiftCodes;
|
|
acceptingGiftCodes2 = binding.acceptingGiftCodes;
|
|
value35 = acceptingGiftCodes !== acceptingGiftCodes2;
|
|
r50 = value35;
|
|
break reducibleJoin66;
|
|
}
|
|
var env0_1 = r50;
|
|
uploads = props.uploads;
|
|
uploads2 = binding.uploads;
|
|
defaultImport3 = importDefault(628) /* metro dependency 628: shallowEqual */;
|
|
interactionStates = props.interactionStates;
|
|
interactionStates2 = binding.interactionStates;
|
|
value36 = defaultImport3(interactionStates, interactionStates2);
|
|
var result = !value36;
|
|
channelPolls = props.channelPolls;
|
|
channelPolls2 = binding.channelPolls;
|
|
value37 = channelPolls !== channelPolls2;
|
|
var result_2 = value37;
|
|
messageReferencePolls = props.messageReferencePolls;
|
|
messageReferencePolls2 = binding.messageReferencePolls;
|
|
value38 = messageReferencePolls !== messageReferencePolls2;
|
|
var result_3 = value38;
|
|
interactionComponentStatesVersion = props.interactionComponentStatesVersion;
|
|
interactionComponentStatesVersion2 = binding.interactionComponentStatesVersion;
|
|
value39 = interactionComponentStatesVersion !== interactionComponentStatesVersion2;
|
|
var result_4 = value39;
|
|
shouldDisableInteractiveComponents = props.shouldDisableInteractiveComponents;
|
|
shouldDisableInteractiveComponents2 = binding.shouldDisableInteractiveComponents;
|
|
var result_5 = shouldDisableInteractiveComponents !== shouldDisableInteractiveComponents2;
|
|
communicationDisabledVersion = props.communicationDisabledVersion;
|
|
communicationDisabledVersion2 = binding.communicationDisabledVersion;
|
|
value40 = communicationDisabledVersion !== communicationDisabledVersion2;
|
|
var result_6 = value40;
|
|
messageAuthorMembers = props.messageAuthorMembers;
|
|
messageAuthorMembers2 = binding.messageAuthorMembers;
|
|
value41 = messageAuthorMembers !== messageAuthorMembers2;
|
|
var result_7 = value41;
|
|
failedMessagesVersion = props.failedMessagesVersion;
|
|
failedMessagesVersion2 = binding.failedMessagesVersion;
|
|
value42 = failedMessagesVersion !== failedMessagesVersion2;
|
|
var result_8 = value42;
|
|
renderCommunicationDisabled = props.renderCommunicationDisabled;
|
|
renderCommunicationDisabled2 = binding.renderCommunicationDisabled;
|
|
value43 = renderCommunicationDisabled !== renderCommunicationDisabled2;
|
|
var result_9 = value43;
|
|
forwardGuildsVersion = props.forwardGuildsVersion;
|
|
forwardGuildsVersion2 = binding.forwardGuildsVersion;
|
|
channel = binding.channel;
|
|
isForumPost = channel.isForumPost;
|
|
isForumPost2 = Reflect.apply(isForumPost, channel, []);
|
|
reducibleJoin68: while (true) {
|
|
if (isForumPost2) {
|
|
isFollowingForumPost = props.isFollowingForumPost;
|
|
isFollowingForumPost2 = env0_0.isFollowingForumPost;
|
|
value44 = isFollowingForumPost !== isFollowingForumPost2;
|
|
r37 = value44;
|
|
break reducibleJoin68;
|
|
}
|
|
r37 = isForumPost2;
|
|
break reducibleJoin68;
|
|
}
|
|
var env0_11 = r37;
|
|
showMediaPostSharePrompt = props.showMediaPostSharePrompt;
|
|
binding = env0_0;
|
|
showMediaPostSharePrompt2 = binding.showMediaPostSharePrompt;
|
|
value45 = showMediaPostSharePrompt !== showMediaPostSharePrompt2;
|
|
var result_10 = value45;
|
|
unloadedContentEntryMessageIds = props.unloadedContentEntryMessageIds;
|
|
unloadedContentEntryMessageIds2 = binding.unloadedContentEntryMessageIds;
|
|
value46 = unloadedContentEntryMessageIds !== unloadedContentEntryMessageIds2;
|
|
var result_11 = value46;
|
|
invalidApplicationIds = props.invalidApplicationIds;
|
|
invalidApplicationIds2 = binding.invalidApplicationIds;
|
|
value47 = invalidApplicationIds !== invalidApplicationIds2;
|
|
var result_12 = value47;
|
|
activityInstanceIds = props.activityInstanceIds;
|
|
activityInstanceIds2 = binding.activityInstanceIds;
|
|
value48 = activityInstanceIds !== activityInstanceIds2;
|
|
reducibleJoin70: while (true) {
|
|
if (value48) {
|
|
r47 = value48;
|
|
break reducibleJoin70;
|
|
}
|
|
activityParticipants = props.activityParticipants;
|
|
activityParticipants2 = env0_0.activityParticipants;
|
|
value49 = activityParticipants !== activityParticipants2;
|
|
r47 = value49;
|
|
break reducibleJoin70;
|
|
}
|
|
reducibleJoin72: while (true) {
|
|
if (r47) {
|
|
break reducibleJoin72;
|
|
}
|
|
applicationAssetFetchingIds = props.applicationAssetFetchingIds;
|
|
applicationAssetFetchingIds2 = env0_0.applicationAssetFetchingIds;
|
|
value50 = applicationAssetFetchingIds !== applicationAssetFetchingIds2;
|
|
r47 = value50;
|
|
break reducibleJoin72;
|
|
}
|
|
reducibleJoin74: while (true) {
|
|
if (r47) {
|
|
break reducibleJoin74;
|
|
}
|
|
activityInstancePresenceDetails = props.activityInstancePresenceDetails;
|
|
activityInstancePresenceDetails2 = env0_0.activityInstancePresenceDetails;
|
|
value51 = activityInstancePresenceDetails !== activityInstancePresenceDetails2;
|
|
r47 = value51;
|
|
break reducibleJoin74;
|
|
}
|
|
reducibleJoin76: while (true) {
|
|
if (r47) {
|
|
break reducibleJoin76;
|
|
}
|
|
messagesWithActivitiesLaunching = props.messagesWithActivitiesLaunching;
|
|
messagesWithActivitiesLaunching2 = env0_0.messagesWithActivitiesLaunching;
|
|
value52 = messagesWithActivitiesLaunching !== messagesWithActivitiesLaunching2;
|
|
r47 = value52;
|
|
break reducibleJoin76;
|
|
}
|
|
if (!r47) {
|
|
r47 = value47;
|
|
}
|
|
var env0_15 = r47;
|
|
moduleValue = require(628) /* metro dependency 628: shallowEqual */;
|
|
areArraysShallowEqual = moduleValue.areArraysShallowEqual;
|
|
activityInviteMessageIds = props.activityInviteMessageIds;
|
|
binding = env0_0;
|
|
activityInviteMessageIds2 = binding.activityInviteMessageIds;
|
|
value53 = Reflect.apply(areArraysShallowEqual, moduleValue, [activityInviteMessageIds,
|
|
activityInviteMessageIds2]);
|
|
var result_13 = !value53;
|
|
moduleValue2 = require(628) /* metro dependency 628: shallowEqual */;
|
|
areArraysShallowEqual = moduleValue2.areArraysShallowEqual;
|
|
resolvedReferralTrialOfferIds = props.resolvedReferralTrialOfferIds;
|
|
resolvedReferralTrialOfferIds2 = binding.resolvedReferralTrialOfferIds;
|
|
value54 = Reflect.apply(areArraysShallowEqual, moduleValue2, [resolvedReferralTrialOfferIds,
|
|
resolvedReferralTrialOfferIds2]);
|
|
value55 = !value54;
|
|
reducibleJoin79: while (true) {
|
|
if (value54) {
|
|
referralTrialOfferId = props.referralTrialOfferId;
|
|
referralTrialOfferId2 = env0_0.referralTrialOfferId;
|
|
value56 = referralTrialOfferId !== referralTrialOfferId2;
|
|
r31 = value56;
|
|
break reducibleJoin79;
|
|
}
|
|
r31 = value55;
|
|
break reducibleJoin79;
|
|
}
|
|
reducibleJoin81: while (true) {
|
|
if (r31) {
|
|
break reducibleJoin81;
|
|
}
|
|
isPremiumTier2User = props.isPremiumTier2User;
|
|
isPremiumTier2User2 = env0_0.isPremiumTier2User;
|
|
value57 = isPremiumTier2User !== isPremiumTier2User2;
|
|
r31 = value57;
|
|
break reducibleJoin81;
|
|
}
|
|
var env0_17 = r31;
|
|
guildInviteColorsFetched = props.guildInviteColorsFetched;
|
|
binding = env0_0;
|
|
guildInviteColorsFetched2 = binding.guildInviteColorsFetched;
|
|
value58 = guildInviteColorsFetched !== guildInviteColorsFetched2;
|
|
var result_14 = value58;
|
|
guildEmojis = props.guildEmojis;
|
|
guildEmojis2 = binding.guildEmojis;
|
|
value59 = guildEmojis !== guildEmojis2;
|
|
var result_15 = value59;
|
|
selfActivities = props.selfActivities;
|
|
selfActivities2 = binding.selfActivities;
|
|
value60 = selfActivities !== selfActivities2;
|
|
var result_16 = value60;
|
|
currentClientVoiceChannelId = props.currentClientVoiceChannelId;
|
|
currentClientVoiceChannelId2 = binding.currentClientVoiceChannelId;
|
|
value61 = currentClientVoiceChannelId !== currentClientVoiceChannelId2;
|
|
var result_17 = value61;
|
|
voiceStateChannelIdSummaryForGuild = props.voiceStateChannelIdSummaryForGuild;
|
|
voiceStateChannelIdSummaryForGuild2 = binding.voiceStateChannelIdSummaryForGuild;
|
|
value62 = voiceStateChannelIdSummaryForGuild !== voiceStateChannelIdSummaryForGuild2;
|
|
var result_18 = value62;
|
|
voiceStatePrivateChannelId = props.voiceStatePrivateChannelId;
|
|
voiceStatePrivateChannelId2 = binding.voiceStatePrivateChannelId;
|
|
value63 = voiceStatePrivateChannelId !== voiceStatePrivateChannelId2;
|
|
activityLaunchJoinStates = props.activityLaunchJoinStates;
|
|
activityLaunchJoinStates2 = binding.activityLaunchJoinStates;
|
|
value64 = activityLaunchJoinStates !== activityLaunchJoinStates2;
|
|
var result_19 = value64;
|
|
authorizedAppsTokens = props.authorizedAppsTokens;
|
|
authorizedAppsTokens2 = binding.authorizedAppsTokens;
|
|
value65 = authorizedAppsTokens !== authorizedAppsTokens2;
|
|
var result_20 = value65;
|
|
displayNameStylesEnabled = props.displayNameStylesEnabled;
|
|
displayNameStylesEnabled3 = binding.displayNameStylesEnabled;
|
|
currentUserDisplayNameStyles = props.currentUserDisplayNameStyles;
|
|
reducibleJoin83: while (true) {
|
|
if (value2 == currentUserDisplayNameStyles) {
|
|
fontId = value7;
|
|
break reducibleJoin83;
|
|
}
|
|
fontId = currentUserDisplayNameStyles.fontId;
|
|
break reducibleJoin83;
|
|
}
|
|
currentUserDisplayNameStyles = env0_0.currentUserDisplayNameStyles;
|
|
reducibleJoin85: while (true) {
|
|
if (value2 == currentUserDisplayNameStyles) {
|
|
fontId2 = value7;
|
|
break reducibleJoin85;
|
|
}
|
|
fontId3 = currentUserDisplayNameStyles.fontId;
|
|
fontId2 = fontId3;
|
|
break reducibleJoin85;
|
|
}
|
|
value66 = fontId !== fontId2;
|
|
var result_21 = value66;
|
|
moduleValue3 = require(628) /* metro dependency 628: shallowEqual */;
|
|
areArraysShallowEqual = moduleValue3.areArraysShallowEqual;
|
|
fetchingSkuIds = props.fetchingSkuIds;
|
|
binding = env0_0;
|
|
fetchingSkuIds2 = binding.fetchingSkuIds;
|
|
value67 = Reflect.apply(areArraysShallowEqual, moduleValue3, [fetchingSkuIds, fetchingSkuIds2]);
|
|
var result_22 = !value67;
|
|
voiceInviteDataByChannelId = props.voiceInviteDataByChannelId;
|
|
voiceInviteDataByChannelId2 = binding.voiceInviteDataByChannelId;
|
|
value68 = voiceInviteDataByChannelId !== voiceInviteDataByChannelId2;
|
|
var result_23 = value68;
|
|
if (!r18) {
|
|
if (!r50) {
|
|
if (uploads === uploads2) {
|
|
if (!r47) {
|
|
messages3 = props.messages;
|
|
messages4 = env0_0.messages;
|
|
if (messages3 === messages4) {
|
|
editingMessageId = props.editingMessageId;
|
|
editingMessageId2 = env0_0.editingMessageId;
|
|
if (editingMessageId === editingMessageId2) {
|
|
replyingMessageId = props.replyingMessageId;
|
|
replyingMessageId2 = env0_0.replyingMessageId;
|
|
if (replyingMessageId === replyingMessageId2) {
|
|
if (!value63) {
|
|
messageAuthorActivities = props.messageAuthorActivities;
|
|
messageAuthorActivities2 = env0_0.messageAuthorActivities;
|
|
if (messageAuthorActivities === messageAuthorActivities2) {
|
|
oldestUnreadMessageId = props.oldestUnreadMessageId;
|
|
oldestUnreadMessageId2 = env0_0.oldestUnreadMessageId;
|
|
if (oldestUnreadMessageId === oldestUnreadMessageId2) {
|
|
invites = props.invites;
|
|
invites2 = env0_0.invites;
|
|
if (invites === invites2) {
|
|
appDirectoryEmbedApplications = props.appDirectoryEmbedApplications;
|
|
appDirectoryEmbedApplications2 = env0_0.appDirectoryEmbedApplications;
|
|
if (appDirectoryEmbedApplications === appDirectoryEmbedApplications2) {
|
|
invalidAppDirectoryEmbedApplicationIds = props.invalidAppDirectoryEmbedApplicationIds;
|
|
invalidAppDirectoryEmbedApplicationIds2 = env0_0.invalidAppDirectoryEmbedApplicationIds;
|
|
if (invalidAppDirectoryEmbedApplicationIds === invalidAppDirectoryEmbedApplicationIds2) {
|
|
appDirectoryEmbedApplicationFetchStates = props.appDirectoryEmbedApplicationFetchStates;
|
|
appDirectoryEmbedApplicationFetchStates2 = env0_0.appDirectoryEmbedApplicationFetchStates;
|
|
if (appDirectoryEmbedApplicationFetchStates === appDirectoryEmbedApplicationFetchStates2) {
|
|
guildTemplates = props.guildTemplates;
|
|
guildTemplates2 = env0_0.guildTemplates;
|
|
if (guildTemplates === guildTemplates2) {
|
|
buildOverrides = props.buildOverrides;
|
|
buildOverrides2 = env0_0.buildOverrides;
|
|
if (buildOverrides === buildOverrides2) {
|
|
experimentEmbeds = props.experimentEmbeds;
|
|
experimentEmbeds2 = env0_0.experimentEmbeds;
|
|
if (experimentEmbeds === experimentEmbeds2) {
|
|
quests = props.quests;
|
|
quests2 = env0_0.quests;
|
|
if (quests === quests2) {
|
|
isFetchingCurrentQuests = props.isFetchingCurrentQuests;
|
|
isFetchingCurrentQuests2 = env0_0.isFetchingCurrentQuests;
|
|
if (isFetchingCurrentQuests === isFetchingCurrentQuests2) {
|
|
participantsLength = props.participantsLength;
|
|
participantsLength2 = env0_0.participantsLength;
|
|
if (participantsLength === participantsLength2) {
|
|
isMessagesReady = props.isMessagesReady;
|
|
isMessagesReady2 = env0_0.isMessagesReady;
|
|
if (isMessagesReady === isMessagesReady2) {
|
|
channelThreadsVersion = props.channelThreadsVersion;
|
|
channelThreadsVersion2 = env0_0.channelThreadsVersion;
|
|
if (channelThreadsVersion === channelThreadsVersion2) {
|
|
rsvpVersion = props.rsvpVersion;
|
|
rsvpVersion2 = env0_0.rsvpVersion;
|
|
if (rsvpVersion === rsvpVersion2) {
|
|
repliedIds = props.repliedIds;
|
|
repliedIds2 = env0_0.repliedIds;
|
|
if (repliedIds === repliedIds2) {
|
|
hasLoadedExperiments = props.hasLoadedExperiments;
|
|
hasLoadedExperiments2 = env0_0.hasLoadedExperiments;
|
|
if (hasLoadedExperiments === hasLoadedExperiments2) {
|
|
isMessageRequest = props.isMessageRequest;
|
|
isMessageRequest2 = env0_0.isMessageRequest;
|
|
if (isMessageRequest === isMessageRequest2) {
|
|
isSpamMessageRequest = props.isSpamMessageRequest;
|
|
isSpamMessageRequest2 = env0_0.isSpamMessageRequest;
|
|
if (isSpamMessageRequest === isSpamMessageRequest2) {
|
|
currentUserCommunicationDisabled = props.currentUserCommunicationDisabled;
|
|
currentUserCommunicationDisabled2 = env0_0.currentUserCommunicationDisabled;
|
|
if (currentUserCommunicationDisabled === currentUserCommunicationDisabled2) {
|
|
userSettingsLocale = props.userSettingsLocale;
|
|
userSettingsLocale3 = env0_0.userSettingsLocale;
|
|
if (userSettingsLocale === userSettingsLocale3) {
|
|
selectedSummary = props.selectedSummary;
|
|
selectedSummary3 = env0_0.selectedSummary;
|
|
if (selectedSummary === selectedSummary3) {
|
|
showPushFeedback = props.showPushFeedback;
|
|
showPushFeedback3 = env0_0.showPushFeedback;
|
|
if (showPushFeedback === showPushFeedback3) {
|
|
cacheStoreLoaded = props.cacheStoreLoaded;
|
|
cacheStoreLoaded2 = env0_0.cacheStoreLoaded;
|
|
if (cacheStoreLoaded === cacheStoreLoaded2) {
|
|
if (!value61) {
|
|
if (!value40) {
|
|
if (!value41) {
|
|
if (!value42) {
|
|
if (forwardGuildsVersion === forwardGuildsVersion2) {
|
|
if (!value43) {
|
|
if (value36) {
|
|
if (!value39) {
|
|
if (!r37) {
|
|
if (value2 == jumpTargetId) {
|
|
if (value2 == focusTargetId) {
|
|
androidKeyboardHeight = props.androidKeyboardHeight;
|
|
androidKeyboardHeight2 = env0_0.androidKeyboardHeight;
|
|
if (androidKeyboardHeight === androidKeyboardHeight2) {
|
|
mediaPostPreviewEmbeds = props.mediaPostPreviewEmbeds;
|
|
mediaPostPreviewEmbeds2 = env0_0.mediaPostPreviewEmbeds;
|
|
if (mediaPostPreviewEmbeds === mediaPostPreviewEmbeds2) {
|
|
shouldObscureSpoiler = props.shouldObscureSpoiler;
|
|
shouldObscureSpoiler3 = env0_0.shouldObscureSpoiler;
|
|
if (shouldObscureSpoiler === shouldObscureSpoiler3) {
|
|
shouldDisableInteractiveComponents = props.shouldDisableInteractiveComponents;
|
|
shouldDisableInteractiveComponents3 = env0_0.shouldDisableInteractiveComponents;
|
|
if (shouldDisableInteractiveComponents === shouldDisableInteractiveComponents3) {
|
|
if (!value37) {
|
|
if (!value38) {
|
|
if (!value45) {
|
|
threadStartingReferenceMessage = props.threadStartingReferenceMessage;
|
|
threadStartingReferenceMessage2 = env0_0.threadStartingReferenceMessage;
|
|
if (threadStartingReferenceMessage === threadStartingReferenceMessage2) {
|
|
if (!value46) {
|
|
if (value53) {
|
|
if (!r31) {
|
|
if (!value58) {
|
|
if (!value59) {
|
|
if (!value60) {
|
|
if (!value64) {
|
|
if (!value65) {
|
|
if (displayNameStylesEnabled === displayNameStylesEnabled3) {
|
|
if (!value66) {
|
|
if (!value62) {
|
|
if (!value68) {
|
|
if (value67) {
|
|
recordTimings_86667Binding = recordTimings_86667;
|
|
binding = env0_0;
|
|
channelId = binding.channelId;
|
|
messages = binding.messages;
|
|
recordTimings_86667Binding(channelId,
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
messages);
|
|
break reducibleJoin177;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
Set = global.Set;
|
|
prototype = Set.prototype;
|
|
value69 = Object.create(prototype, {constructor: {value: Set}});
|
|
set = new Set();
|
|
value70 = set instanceof Object ? set : value69;
|
|
var env0_28 = value70;
|
|
editingMessageId = props.editingMessageId;
|
|
editingMessageId3 = env0_0.editingMessageId;
|
|
reducibleJoin155: while (true) {
|
|
if (editingMessageId === editingMessageId3) {
|
|
break reducibleJoin155;
|
|
}
|
|
editingMessageId = env0_0.editingMessageId;
|
|
reducibleJoin153: while (true) {
|
|
if (value2 == editingMessageId) {
|
|
break reducibleJoin153;
|
|
}
|
|
add = value70.add;
|
|
editingMessageId = env0_0.editingMessageId;
|
|
Reflect.apply(add, value70, [editingMessageId]);
|
|
break reducibleJoin153;
|
|
}
|
|
editingMessageId = props.editingMessageId;
|
|
if (value2 == editingMessageId) {
|
|
break reducibleJoin155;
|
|
}
|
|
add = value70.add;
|
|
editingMessageId = props.editingMessageId;
|
|
Reflect.apply(add, value70, [editingMessageId]);
|
|
break reducibleJoin155;
|
|
}
|
|
replyingMessageId = props.replyingMessageId;
|
|
replyingMessageId3 = env0_0.replyingMessageId;
|
|
reducibleJoin160: while (true) {
|
|
if (replyingMessageId === replyingMessageId3) {
|
|
break reducibleJoin160;
|
|
}
|
|
replyingMessageId = env0_0.replyingMessageId;
|
|
reducibleJoin158: while (true) {
|
|
if (value2 == replyingMessageId) {
|
|
break reducibleJoin158;
|
|
}
|
|
add = value70.add;
|
|
replyingMessageId = env0_0.replyingMessageId;
|
|
Reflect.apply(add, value70, [replyingMessageId]);
|
|
break reducibleJoin158;
|
|
}
|
|
replyingMessageId = props.replyingMessageId;
|
|
if (value2 == replyingMessageId) {
|
|
break reducibleJoin160;
|
|
}
|
|
add = value70.add;
|
|
replyingMessageId = props.replyingMessageId;
|
|
Reflect.apply(add, value70, [replyingMessageId]);
|
|
break reducibleJoin160;
|
|
}
|
|
isMessagesReady = props.isMessagesReady;
|
|
isMessagesReady3 = env0_0.isMessagesReady;
|
|
reducibleJoin166: while (true) {
|
|
reducibleJoin164: while (true) {
|
|
if (isMessagesReady !== isMessagesReady3) {
|
|
break reducibleJoin164;
|
|
}
|
|
isCallActive = props.isCallActive;
|
|
isCallActive2 = env0_0.isCallActive;
|
|
if (isCallActive !== isCallActive2) {
|
|
break reducibleJoin164;
|
|
}
|
|
if (value63) {
|
|
break reducibleJoin164;
|
|
}
|
|
participantsLength = props.participantsLength;
|
|
participantsLength3 = env0_0.participantsLength;
|
|
if (participantsLength === participantsLength3) {
|
|
break reducibleJoin166;
|
|
}
|
|
break reducibleJoin164;
|
|
}
|
|
defaultImport4 = importDefault(22) /* metro dependency 22 */;
|
|
find = defaultImport4.find;
|
|
messages5 = env0_0.messages;
|
|
toArray = messages5.toArray;
|
|
value71 = Reflect.apply(toArray, messages5, []);
|
|
reverse = value71.reverse;
|
|
value72 = Reflect.apply(reverse, value71, []);
|
|
value73 = Reflect.apply(find, defaultImport4, [value72, function({type}) {
|
|
return type === MessageTypes.CALL;
|
|
}]);
|
|
if (value2 == value73) {
|
|
break reducibleJoin166;
|
|
}
|
|
add = value70.add;
|
|
id = value73.id;
|
|
Reflect.apply(add, value70, [id]);
|
|
break reducibleJoin166;
|
|
}
|
|
channelThreadsVersion = props.channelThreadsVersion;
|
|
binding = env0_0;
|
|
channelThreadsVersion3 = binding.channelThreadsVersion;
|
|
var result_24 = channelThreadsVersion !== channelThreadsVersion3;
|
|
rsvpVersion = props.rsvpVersion;
|
|
rsvpVersion3 = binding.rsvpVersion;
|
|
var result_25 = rsvpVersion !== rsvpVersion3;
|
|
repliedIds = props.repliedIds;
|
|
repliedIds3 = binding.repliedIds;
|
|
var result_26 = repliedIds !== repliedIds3;
|
|
hasLoadedExperiments = props.hasLoadedExperiments;
|
|
hasLoadedExperiments3 = binding.hasLoadedExperiments;
|
|
var result_27 = hasLoadedExperiments !== hasLoadedExperiments3;
|
|
communicationDisabledVersion = props.communicationDisabledVersion;
|
|
value74 = -1;
|
|
r6 = value2 != communicationDisabledVersion ? communicationDisabledVersion : value74;
|
|
var env0_33 = r6;
|
|
cacheStoreLoaded = props.cacheStoreLoaded;
|
|
value75 = !cacheStoreLoaded;
|
|
reducibleJoin169: while (true) {
|
|
if (cacheStoreLoaded) {
|
|
r10 = value75;
|
|
break reducibleJoin169;
|
|
}
|
|
cacheStoreLoaded = env0_0.cacheStoreLoaded;
|
|
r10 = cacheStoreLoaded;
|
|
break reducibleJoin169;
|
|
}
|
|
var env0_34 = r10;
|
|
reducibleJoin173: while (true) {
|
|
if (value62) {
|
|
moduleValue4 = require(9835) /* metro dependency 9835: MessagesUtils */;
|
|
getVoiceChannelIdChangedAuthorIds = moduleValue4.getVoiceChannelIdChangedAuthorIds;
|
|
voiceStateChannelIdSummaryForGuild = props.voiceStateChannelIdSummaryForGuild;
|
|
r21 = value2 != voiceStateChannelIdSummaryForGuild ? voiceStateChannelIdSummaryForGuild : value2;
|
|
voiceStateChannelIdSummaryForGuild = env0_0.voiceStateChannelIdSummaryForGuild;
|
|
r24 = value2 != voiceStateChannelIdSummaryForGuild ? voiceStateChannelIdSummaryForGuild : value2;
|
|
value76 = Reflect.apply(getVoiceChannelIdChangedAuthorIds, moduleValue4, [r21, r24]);
|
|
r6 = value76;
|
|
break reducibleJoin173;
|
|
}
|
|
r6 = value2;
|
|
break reducibleJoin173;
|
|
}
|
|
var env0_35 = r6;
|
|
binding = env0_0;
|
|
messages6 = binding.messages;
|
|
forEach = messages6.forEach;
|
|
Reflect.apply(forEach, messages6, [_fun86706]);
|
|
channelId = props.channelId;
|
|
channelId4 = binding.channelId;
|
|
value77 = channelId !== channelId4;
|
|
reducibleJoin175: while (true) {
|
|
if (value77) {
|
|
r6 = value77;
|
|
break reducibleJoin175;
|
|
}
|
|
suppressRowAnimationSequenceId = messages2.suppressRowAnimationSequenceId;
|
|
suppressRowAnimationSequenceId2 = messages.suppressRowAnimationSequenceId;
|
|
value78 = suppressRowAnimationSequenceId === suppressRowAnimationSequenceId2;
|
|
r6 = value78;
|
|
break reducibleJoin175;
|
|
}
|
|
updateRowsBinding = updateRows;
|
|
r16 = forceReload || value3;
|
|
updateRowsBinding({forceRender: r18, forceReload: r16, updateMessageIds: value70,
|
|
scrollToMessageId: scrollToMessageId, jumpTargetId: jumpTargetId, jumpType: jumpType,
|
|
focusTargetId: focusTargetId, ignoreEmbedDescriptionCache: r10, messagesNewlyLoaded: r9,
|
|
shouldInitialScroll: shouldInitialScroll, minimizeScrolling: minimizeScrolling, isAnimated: r6,
|
|
hasJumpedToOriginalPost: r5});
|
|
env0_5(false);
|
|
recordTimings_86667Binding = recordTimings_86667;
|
|
binding = env0_0;
|
|
channelId = binding.channelId;
|
|
messages = binding.messages;
|
|
recordTimings_86667Binding(channelId, messages);
|
|
break reducibleJoin177;
|
|
}
|
|
}
|
|
|
|
function onLongPressSticker(a0) { // fn#86707, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11527:21530, offset: 0x01f9d304, size: 155 bytes, params: 2, frame: 15
|
|
let value = environment.__proto__;
|
|
value = require(9834) /* metro dependency 9834: MessageDataSnowflakeUtils */;
|
|
const getNativeSyntheticEventData = value.getNativeSyntheticEventData;
|
|
const messageId = Reflect.apply(getNativeSyntheticEventData, value, [a0]).messageId;
|
|
const current = env0_9.current;
|
|
const Set = global.Set;
|
|
const set = new Set([messageId]);
|
|
const value4 = null;
|
|
if (value4 != current) {
|
|
set.add(current);
|
|
}
|
|
env0_9.current = current === messageId ? value4 : messageId;
|
|
updateRows({forceRender: true, updateMessageIds: set});
|
|
}
|
|
|
|
function onTapTableView() { // fn#86708, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11527:25161, offset: 0x01f9d39f, size: 126 bytes, params: 1, frame: 14
|
|
var current;
|
|
const value = environment.__proto__;
|
|
if ((require(477) /* metro dependency 477: PlatformUtils */).isIOS() && env0_0.keyboardType !== (require(1583) /* metro dependency 1583: KeyboardTypes */).KeyboardTypes.SYSTEM) {
|
|
current = env0_0.chatInputRef.current;
|
|
if (current != null) {
|
|
current.closeCustomKeyboard();
|
|
}
|
|
}
|
|
}
|
|
|
|
function _fun86685() { // fn#86685, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11527:5496, offset: 0x01f9b29a, size: 14 bytes, params: 1, frame: 1
|
|
return env1_27.current;
|
|
}
|
|
|
|
function* _fun86688() { // fn#86688, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11527:5552, offset: 0x01f9b2d7, size: 377 bytes, params: 1, frame: 22
|
|
var environment;
|
|
var current;
|
|
var value3;
|
|
var binding;
|
|
var value4;
|
|
var castChannelIdAsMessageId;
|
|
var id;
|
|
var jsxRuntimeEnv2_17Binding;
|
|
var value6;
|
|
var value7;
|
|
var value8;
|
|
var scrollTo;
|
|
var object2;
|
|
var setTimeout;
|
|
var fetchMessages;
|
|
if (true) {
|
|
value = environment.__proto__.__proto__;
|
|
var channel = require.channel;
|
|
var useReducedMotion = require.useReducedMotion;
|
|
if (channel.isForumPost()) {
|
|
current = handleTapShowAltText.current;
|
|
if (current) {
|
|
return undefined;
|
|
}
|
|
value3 = environment.__proto__.__proto__.__proto__;
|
|
binding = env3_1;
|
|
value4 = binding(env3_2[20]);
|
|
castChannelIdAsMessageId = value4.castChannelIdAsMessageId;
|
|
id = channel.id;
|
|
if (MAX_MESSAGES_PER_CHANNEL(Reflect.apply(castChannelIdAsMessageId, value4, [id])) == null) {
|
|
value = env3_1(env3_2[26]);
|
|
fetchMessages = value.fetchMessages;
|
|
object2 = {};
|
|
id = channel.id;
|
|
object2.channelId = id;
|
|
id = channel.id;
|
|
object2.jump = {messageId: id, flash: false};
|
|
object2.limit = env3_13;
|
|
yield Reflect.apply(fetchMessages, value, [object2]);
|
|
value = undefined;
|
|
if (false) {
|
|
return value;
|
|
}
|
|
global.setTimeout(function() {
|
|
return _arrayLikeToArray_86665(!useReducedMotion);
|
|
}, 50);
|
|
return undefined;
|
|
}
|
|
jsxRuntimeEnv2_17Binding = jsxRuntimeEnv2_17;
|
|
binding = env3_1;
|
|
value6 = binding(env3_2[20]);
|
|
castChannelIdAsMessageId = value6.castChannelIdAsMessageId;
|
|
id = channel.id;
|
|
value7 = jsxRuntimeEnv2_17Binding(Reflect.apply(castChannelIdAsMessageId, value6, [id]));
|
|
if (value7 == null) {
|
|
return undefined;
|
|
}
|
|
binding = env3_1;
|
|
value8 = binding(env3_2[17]);
|
|
scrollTo = value8.scrollTo;
|
|
current = Changeset.current;
|
|
Reflect.apply(scrollTo, value8, [current, value7, {animated: !useReducedMotion}]);
|
|
setTimeout = global.setTimeout;
|
|
value = 10 * value7;
|
|
setTimeout(_fun86690, value);
|
|
}
|
|
}
|
|
}
|
|
|
|
function _fun86700() { // fn#86700, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11527:9138, offset: 0x01f9b954, size: 94 bytes, params: 1, frame: 14
|
|
const scrollToMessageIdBinding = scrollToMessageId;
|
|
const object2 = {};
|
|
object2.scrollToMessageId = oldestUnreadMessageId;
|
|
object2.jumpTargetId = messages.jumpTargetId;
|
|
const JumpTypes = (require(4044) /* metro dependency 4044: Client */).JumpTypes;
|
|
const INSTANT = JumpTypes.INSTANT;
|
|
object2.jumpType = INSTANT;
|
|
object2.hasJumpedToOriginalPost = env1_2;
|
|
return scrollToMessageIdBinding(object2);
|
|
}
|
|
|
|
function _fun86703() { // fn#86703, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11527:9428, offset: 0x01f9b9d1, size: 38 bytes, params: 1, frame: 15
|
|
const updateShouldShowJumpToPresentButtonBinding = updateShouldShowJumpToPresentButton;
|
|
const binding = env1_0;
|
|
updateShouldShowJumpToPresentButtonBinding(binding.channelId, binding.screenIndex, false);
|
|
}
|
|
|
|
function _fun86706(a0) { // fn#86706, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11527:17033, offset: 0x01f9c806, size: 2814 bytes, params: 2, frame: 30
|
|
var type;
|
|
var r4;
|
|
var id;
|
|
var message_id;
|
|
var party_id;
|
|
var r3;
|
|
var r7;
|
|
var r5;
|
|
var author;
|
|
var binding;
|
|
var has;
|
|
var activity;
|
|
var value3;
|
|
var value4;
|
|
var value5;
|
|
var messageReference;
|
|
var value6;
|
|
var repliedIds;
|
|
var hasFlag;
|
|
var value7;
|
|
var codedLinks;
|
|
var length;
|
|
var value8;
|
|
var _createForOfIteratorHelperLoose_86663Binding;
|
|
var value9;
|
|
var value10;
|
|
var done;
|
|
var value11;
|
|
var value12;
|
|
var code;
|
|
const CodedLinkType = (require(4101) /* metro dependency 4101: CodedLink */).CodedLinkType;
|
|
var INVITE;
|
|
var invites;
|
|
var get;
|
|
var value13;
|
|
var channel;
|
|
var moduleValue;
|
|
var isVoiceChannelInvite;
|
|
var voiceInviteDataByChannelId;
|
|
var property;
|
|
var value14;
|
|
var add;
|
|
var value15;
|
|
var value16;
|
|
var guildId;
|
|
var value17;
|
|
var getUserCommunicationDisabledVersionBinding;
|
|
var userCommunicationDisabledVersionBinding;
|
|
var value19;
|
|
var value20;
|
|
var value21;
|
|
var currentUserId;
|
|
var interactionStates;
|
|
var value22;
|
|
var interactionComponentStates;
|
|
var value23;
|
|
var value24;
|
|
var components;
|
|
var channelPolls;
|
|
var value25;
|
|
var value26;
|
|
var messageReferencePolls;
|
|
var value27;
|
|
var unloadedContentEntryMessageIds;
|
|
var value28;
|
|
var value29;
|
|
var value30;
|
|
var isForumPost;
|
|
var value31;
|
|
var defaultImport;
|
|
var castChannelIdAsMessageId;
|
|
var channelId;
|
|
var activityInstance;
|
|
var result_13Binding;
|
|
var value32;
|
|
var value33;
|
|
var application;
|
|
var value34;
|
|
var result_12Binding;
|
|
var value35;
|
|
var value36;
|
|
var value37;
|
|
var value38;
|
|
var SOCIAL_LAYER_STOREFRONT;
|
|
var SOCIAL_LAYER_STOREFRONT_APP;
|
|
var split;
|
|
var value39;
|
|
var fetchingSkuIds;
|
|
var includes;
|
|
var value40;
|
|
var invalidApplicationIds;
|
|
var applicationId;
|
|
var value41;
|
|
var value42;
|
|
var value43;
|
|
var defaultImport2;
|
|
var messageAuthorActivitiesChanged;
|
|
var defaultImport3;
|
|
var codedLinksChanged;
|
|
var defaultImport4;
|
|
var giftCodesChanged;
|
|
var defaultImport5;
|
|
var mediaPostPreviewEmbedsChanged;
|
|
var embeds;
|
|
var value44;
|
|
var THREAD_STARTER_MESSAGE;
|
|
var value45;
|
|
var threadStartingReferenceMessage;
|
|
var threadStartingReferenceMessage2;
|
|
var value46;
|
|
var value47;
|
|
var value48;
|
|
var referralTrialOfferId;
|
|
var value49;
|
|
var resolvedReferralTrialOfferIds;
|
|
var value50;
|
|
var result_14Binding;
|
|
var value51;
|
|
var messageAuthorMembers;
|
|
if (result_18) {
|
|
reducibleJoin4: while (true) {
|
|
if (env0_35 == null) {
|
|
break reducibleJoin4;
|
|
}
|
|
author = a0.author;
|
|
if (author != null) {
|
|
binding = env0_35;
|
|
has = binding.has;
|
|
author = a0.author;
|
|
id = author.id;
|
|
if (!Reflect.apply(has, binding, [id])) {
|
|
break reducibleJoin4;
|
|
}
|
|
binding = env0_28;
|
|
add = binding.add;
|
|
id = a0.id;
|
|
Reflect.apply(add, binding, [id]);
|
|
return undefined;
|
|
}
|
|
break reducibleJoin4;
|
|
}
|
|
}
|
|
if (result_17) {
|
|
activity = a0.activity;
|
|
reducibleJoin7: while (true) {
|
|
if (activity == null) {
|
|
type = undefined;
|
|
break reducibleJoin7;
|
|
}
|
|
type = activity.type;
|
|
break reducibleJoin7;
|
|
}
|
|
value3 = environment.__proto__.__proto__;
|
|
reducibleJoin8: while (true) {
|
|
if (type === ActivityActionTypes.STREAM_REQUEST) {
|
|
binding = env0_28;
|
|
binding.add(a0.id);
|
|
return undefined;
|
|
}
|
|
break reducibleJoin8;
|
|
}
|
|
}
|
|
if (result_27) {
|
|
type = a0.type;
|
|
value4 = environment.__proto__.__proto__;
|
|
reducibleJoin10: while (true) {
|
|
if (type === MessageTypes.USER_JOIN) {
|
|
binding = env0_28;
|
|
binding.add(a0.id);
|
|
return undefined;
|
|
}
|
|
break reducibleJoin10;
|
|
}
|
|
}
|
|
if (result_26) {
|
|
type = a0.type;
|
|
value5 = environment.__proto__.__proto__;
|
|
reducibleJoin14: while (true) {
|
|
if (type !== MessageTypes.REPLY) {
|
|
break reducibleJoin14;
|
|
}
|
|
messageReference = a0.messageReference;
|
|
if (messageReference == null) {
|
|
break reducibleJoin14;
|
|
}
|
|
value6 = environment.__proto__;
|
|
repliedIds = env1_0.repliedIds;
|
|
has = repliedIds.has;
|
|
message_id = messageReference.message_id;
|
|
if (Reflect.apply(has, repliedIds, [message_id])) {
|
|
binding = env0_28;
|
|
binding.add(a0.id);
|
|
return undefined;
|
|
}
|
|
break reducibleJoin14;
|
|
}
|
|
}
|
|
if (result_24) {
|
|
hasFlag = a0.hasFlag;
|
|
value7 = environment.__proto__.__proto__;
|
|
reducibleJoin16: while (true) {
|
|
if (Reflect.apply(hasFlag, a0, [MessageFlags.HAS_THREAD])) {
|
|
binding = env0_28;
|
|
binding.add(a0.id);
|
|
return undefined;
|
|
}
|
|
break reducibleJoin16;
|
|
}
|
|
}
|
|
if (result_25) {
|
|
codedLinks = a0.codedLinks;
|
|
length = codedLinks.length;
|
|
reducibleJoin18: while (true) {
|
|
if (length > 0) {
|
|
binding = env0_28;
|
|
binding.add(a0.id);
|
|
return undefined;
|
|
}
|
|
break reducibleJoin18;
|
|
}
|
|
}
|
|
if (result_23) {
|
|
codedLinks = a0.codedLinks;
|
|
length = codedLinks.length;
|
|
reducibleJoin28: while (true) {
|
|
if (!(length > 0)) {
|
|
break reducibleJoin28;
|
|
}
|
|
value8 = environment.__proto__.__proto__;
|
|
_createForOfIteratorHelperLoose_86663Binding = _createForOfIteratorHelperLoose_86663;
|
|
codedLinks = a0.codedLinks;
|
|
value9 = _createForOfIteratorHelperLoose_86663Binding(codedLinks);
|
|
value10 = value9();
|
|
done = value10.done;
|
|
value11 = environment.__proto__;
|
|
if (done) {
|
|
break reducibleJoin28;
|
|
}
|
|
r4 = value10;
|
|
reducibleLoop21: while (true) {
|
|
value12 = r4.value;
|
|
type = value12.type;
|
|
code = value12.code;
|
|
INVITE = CodedLinkType.INVITE;
|
|
if (type === INVITE) {
|
|
invites = env1_0.invites;
|
|
get = invites.get;
|
|
value13 = Reflect.apply(get, invites, [code]);
|
|
reducibleJoin26: while (true) {
|
|
if (value13 == null) {
|
|
break reducibleJoin26;
|
|
}
|
|
channel = value13.channel;
|
|
if (channel == null) {
|
|
break reducibleJoin26;
|
|
}
|
|
moduleValue = require(4116) /* metro dependency 4116: InviteTypeUtils */;
|
|
isVoiceChannelInvite = moduleValue.isVoiceChannelInvite;
|
|
if (Reflect.apply(isVoiceChannelInvite, moduleValue, [value13])) {
|
|
channel = value13.channel;
|
|
id = channel.id;
|
|
voiceInviteDataByChannelId = props.voiceInviteDataByChannelId;
|
|
property = voiceInviteDataByChannelId[id];
|
|
voiceInviteDataByChannelId = env1_0.voiceInviteDataByChannelId;
|
|
if (property !== voiceInviteDataByChannelId[id]) {
|
|
binding = env0_28;
|
|
binding.add(a0.id);
|
|
return undefined;
|
|
}
|
|
break reducibleJoin26;
|
|
}
|
|
break reducibleJoin26;
|
|
}
|
|
}
|
|
value14 = value9();
|
|
done = value14.done;
|
|
if (done) {
|
|
break reducibleJoin28;
|
|
}
|
|
r4 = value14;
|
|
continue reducibleLoop21;
|
|
}
|
|
}
|
|
}
|
|
if (result_15) {
|
|
type = a0.type;
|
|
value15 = environment.__proto__.__proto__;
|
|
reducibleJoin30: while (true) {
|
|
if (type === MessageTypes.EMOJI_ADDED) {
|
|
binding = env0_28;
|
|
binding.add(a0.id);
|
|
return undefined;
|
|
}
|
|
break reducibleJoin30;
|
|
}
|
|
}
|
|
if (!result_9) {
|
|
reducibleJoin135: while (true) {
|
|
reducibleJoin143: while (true) {
|
|
if (result_6) {
|
|
value16 = environment.__proto__;
|
|
guildId = env1_0.guildId;
|
|
if (guildId != null) {
|
|
value17 = environment.__proto__.__proto__;
|
|
getUserCommunicationDisabledVersionBinding = getUserCommunicationDisabledVersion;
|
|
guildId = env1_0.guildId;
|
|
author = a0.author;
|
|
id = author.id;
|
|
userCommunicationDisabledVersionBinding = getUserCommunicationDisabledVersionBinding(guildId,
|
|
id);
|
|
reducibleJoin34: while (true) {
|
|
if (userCommunicationDisabledVersionBinding > env0_33) {
|
|
break reducibleJoin135;
|
|
}
|
|
break reducibleJoin34;
|
|
}
|
|
}
|
|
if (result_7) {
|
|
value19 = environment.__proto__;
|
|
guildId = env1_0.guildId;
|
|
reducibleJoin39: while (true) {
|
|
if (guildId == null) {
|
|
break reducibleJoin39;
|
|
}
|
|
author = a0.author;
|
|
value20 = undefined;
|
|
reducibleJoin38: while (true) {
|
|
if (author == null) {
|
|
id = value20;
|
|
break reducibleJoin38;
|
|
}
|
|
id = author.id;
|
|
break reducibleJoin38;
|
|
}
|
|
if (id != null) {
|
|
messageAuthorMembers = env1_0.messageAuthorMembers;
|
|
author = a0.author;
|
|
id = author.id;
|
|
property = messageAuthorMembers[id];
|
|
messageAuthorMembers = props.messageAuthorMembers;
|
|
author = a0.author;
|
|
id = author.id;
|
|
if (property === messageAuthorMembers[id]) {
|
|
break reducibleJoin143;
|
|
}
|
|
binding = env0_28;
|
|
add = binding.add;
|
|
id = a0.id;
|
|
Reflect.apply(add, binding, [id]);
|
|
break reducibleJoin143;
|
|
}
|
|
break reducibleJoin39;
|
|
}
|
|
}
|
|
if (result_8) {
|
|
author = a0.author;
|
|
id = author.id;
|
|
value21 = environment.__proto__;
|
|
currentUserId = env1_0.currentUserId;
|
|
reducibleJoin41: while (true) {
|
|
if (id === currentUserId) {
|
|
binding = env0_28;
|
|
add = binding.add;
|
|
id = a0.id;
|
|
Reflect.apply(add, binding, [id]);
|
|
break reducibleJoin143;
|
|
}
|
|
break reducibleJoin41;
|
|
}
|
|
}
|
|
if (result) {
|
|
interactionStates = props.interactionStates;
|
|
id = a0.id;
|
|
property = interactionStates[id];
|
|
value22 = environment.__proto__;
|
|
interactionStates = env1_0.interactionStates;
|
|
id = a0.id;
|
|
reducibleJoin43: while (true) {
|
|
if (property !== interactionStates[id]) {
|
|
binding = env0_28;
|
|
add = binding.add;
|
|
id = a0.id;
|
|
Reflect.apply(add, binding, [id]);
|
|
break reducibleJoin143;
|
|
}
|
|
break reducibleJoin43;
|
|
}
|
|
}
|
|
if (result_4) {
|
|
interactionComponentStates = props.interactionComponentStates;
|
|
get = interactionComponentStates.get;
|
|
id = a0.id;
|
|
value23 = Reflect.apply(get, interactionComponentStates, [id]);
|
|
value24 = environment.__proto__;
|
|
interactionComponentStates = env1_0.interactionComponentStates;
|
|
get = interactionComponentStates.get;
|
|
id = a0.id;
|
|
reducibleJoin45: while (true) {
|
|
if (value23 !== Reflect.apply(get, interactionComponentStates, [id])) {
|
|
binding = env0_28;
|
|
add = binding.add;
|
|
id = a0.id;
|
|
Reflect.apply(add, binding, [id]);
|
|
break reducibleJoin143;
|
|
}
|
|
break reducibleJoin45;
|
|
}
|
|
}
|
|
if (result_5) {
|
|
components = a0.components;
|
|
length = components.length;
|
|
reducibleJoin47: while (true) {
|
|
if (length !== 0) {
|
|
binding = env0_28;
|
|
add = binding.add;
|
|
id = a0.id;
|
|
Reflect.apply(add, binding, [id]);
|
|
break reducibleJoin143;
|
|
}
|
|
break reducibleJoin47;
|
|
}
|
|
}
|
|
if (result_2) {
|
|
channelPolls = props.channelPolls;
|
|
id = a0.id;
|
|
property = channelPolls[id];
|
|
value25 = environment.__proto__;
|
|
channelPolls = env1_0.channelPolls;
|
|
id = a0.id;
|
|
reducibleJoin49: while (true) {
|
|
if (property !== channelPolls[id]) {
|
|
binding = env0_28;
|
|
add = binding.add;
|
|
id = a0.id;
|
|
Reflect.apply(add, binding, [id]);
|
|
break reducibleJoin143;
|
|
}
|
|
break reducibleJoin49;
|
|
}
|
|
}
|
|
if (result_3) {
|
|
messageReference = a0.messageReference;
|
|
value26 = undefined;
|
|
reducibleJoin52: while (true) {
|
|
if (messageReference == null) {
|
|
message_id = value26;
|
|
break reducibleJoin52;
|
|
}
|
|
message_id = messageReference.message_id;
|
|
break reducibleJoin52;
|
|
}
|
|
reducibleJoin54: while (true) {
|
|
if (message_id == null) {
|
|
break reducibleJoin54;
|
|
}
|
|
messageReferencePolls = props.messageReferencePolls;
|
|
property = messageReferencePolls[message_id];
|
|
value27 = environment.__proto__;
|
|
messageReferencePolls = env1_0.messageReferencePolls;
|
|
if (property !== messageReferencePolls[message_id]) {
|
|
binding = env0_28;
|
|
binding.add(a0.id);
|
|
return value26;
|
|
}
|
|
break reducibleJoin54;
|
|
}
|
|
}
|
|
if (result_11) {
|
|
unloadedContentEntryMessageIds = props.unloadedContentEntryMessageIds;
|
|
has = unloadedContentEntryMessageIds.has;
|
|
id = a0.id;
|
|
value28 = Reflect.apply(has, unloadedContentEntryMessageIds, [id]);
|
|
value29 = environment.__proto__;
|
|
unloadedContentEntryMessageIds = env1_0.unloadedContentEntryMessageIds;
|
|
has = unloadedContentEntryMessageIds.has;
|
|
id = a0.id;
|
|
reducibleJoin56: while (true) {
|
|
if (value28 !== Reflect.apply(has, unloadedContentEntryMessageIds, [id])) {
|
|
binding = env0_28;
|
|
add = binding.add;
|
|
id = a0.id;
|
|
Reflect.apply(add, binding, [id]);
|
|
break reducibleJoin143;
|
|
}
|
|
break reducibleJoin56;
|
|
}
|
|
}
|
|
value30 = environment.__proto__;
|
|
channel = env1_0.channel;
|
|
if (channel.isForumPost()) {
|
|
reducibleJoin60: while (true) {
|
|
reducibleJoin59: while (true) {
|
|
if (env0_11) {
|
|
break reducibleJoin59;
|
|
}
|
|
if (result_10) {
|
|
break reducibleJoin59;
|
|
}
|
|
break reducibleJoin60;
|
|
}
|
|
id = a0.id;
|
|
value31 = environment.__proto__.__proto__;
|
|
defaultImport = importDefault(21) /* metro dependency 21: SnowflakeUtils */;
|
|
castChannelIdAsMessageId = defaultImport.castChannelIdAsMessageId;
|
|
channelId = env1_0.channelId;
|
|
if (id === Reflect.apply(castChannelIdAsMessageId, defaultImport, [channelId])) {
|
|
binding = env0_28;
|
|
add = binding.add;
|
|
id = a0.id;
|
|
Reflect.apply(add, binding, [id]);
|
|
break reducibleJoin143;
|
|
}
|
|
break reducibleJoin60;
|
|
}
|
|
}
|
|
if (env0_15) {
|
|
activityInstance = a0.activityInstance;
|
|
reducibleJoin62: while (true) {
|
|
if (activityInstance != null) {
|
|
binding = env0_28;
|
|
add = binding.add;
|
|
id = a0.id;
|
|
Reflect.apply(add, binding, [id]);
|
|
break reducibleJoin143;
|
|
}
|
|
break reducibleJoin62;
|
|
}
|
|
}
|
|
result_13Binding = result_13;
|
|
reducibleJoin66: while (true) {
|
|
if (result_13Binding) {
|
|
activity = a0.activity;
|
|
value32 = undefined;
|
|
reducibleJoin65: while (true) {
|
|
if (activity == null) {
|
|
party_id = value32;
|
|
break reducibleJoin65;
|
|
}
|
|
party_id = activity.party_id;
|
|
break reducibleJoin65;
|
|
}
|
|
value33 = party_id != null;
|
|
r3 = value33;
|
|
break reducibleJoin66;
|
|
}
|
|
r3 = result_13Binding;
|
|
break reducibleJoin66;
|
|
}
|
|
reducibleJoin68: while (true) {
|
|
if (r3) {
|
|
binding = env0_28;
|
|
add = binding.add;
|
|
id = a0.id;
|
|
Reflect.apply(add, binding, [id]);
|
|
break reducibleJoin68;
|
|
}
|
|
break reducibleJoin68;
|
|
}
|
|
if (result_20) {
|
|
application = a0.application;
|
|
reducibleJoin70: while (true) {
|
|
if (application != null) {
|
|
binding = env0_28;
|
|
add = binding.add;
|
|
id = a0.id;
|
|
Reflect.apply(add, binding, [id]);
|
|
break reducibleJoin143;
|
|
}
|
|
break reducibleJoin70;
|
|
}
|
|
}
|
|
if (result_21) {
|
|
author = a0.author;
|
|
value34 = undefined;
|
|
reducibleJoin73: while (true) {
|
|
if (author == null) {
|
|
id = value34;
|
|
break reducibleJoin73;
|
|
}
|
|
id = author.id;
|
|
break reducibleJoin73;
|
|
}
|
|
currentUserId = env1_0.currentUserId;
|
|
reducibleJoin74: while (true) {
|
|
if (id === currentUserId) {
|
|
binding = env0_28;
|
|
add = binding.add;
|
|
id = a0.id;
|
|
Reflect.apply(add, binding, [id]);
|
|
break reducibleJoin143;
|
|
}
|
|
break reducibleJoin74;
|
|
}
|
|
}
|
|
if (!result_22) {
|
|
result_12Binding = result_12;
|
|
reducibleJoin76: while (true) {
|
|
if (result_12Binding) {
|
|
break reducibleJoin76;
|
|
}
|
|
author = a0.author;
|
|
if (author == null) {
|
|
break reducibleJoin143;
|
|
}
|
|
value42 = environment.__proto__.__proto__;
|
|
value43 = undefined;
|
|
defaultImport2 = importDefault(11523) /* metro dependency 11523: MessagesUtils */;
|
|
messageAuthorActivitiesChanged = defaultImport2.messageAuthorActivitiesChanged;
|
|
if (!Reflect.apply(messageAuthorActivitiesChanged, defaultImport2, [a0, props, env1_0])) {
|
|
defaultImport3 = importDefault(11523) /* metro dependency 11523: MessagesUtils */;
|
|
codedLinksChanged = defaultImport3.codedLinksChanged;
|
|
if (!Reflect.apply(codedLinksChanged, defaultImport3, [a0, props, env1_0])) {
|
|
if (env0_1) {
|
|
defaultImport4 = importDefault(11523) /* metro dependency 11523: MessagesUtils */;
|
|
giftCodesChanged = defaultImport4.giftCodesChanged;
|
|
if (Reflect.apply(giftCodesChanged, defaultImport4, [a0, props, env1_0])) {
|
|
binding = env0_28;
|
|
add = binding.add;
|
|
id = a0.id;
|
|
Reflect.apply(add, binding, [id]);
|
|
break reducibleJoin143;
|
|
}
|
|
}
|
|
defaultImport5 = importDefault(11523) /* metro dependency 11523: MessagesUtils */;
|
|
mediaPostPreviewEmbedsChanged = defaultImport5.mediaPostPreviewEmbedsChanged;
|
|
if (!Reflect.apply(mediaPostPreviewEmbedsChanged, defaultImport5, [a0, props,
|
|
env1_0])) {
|
|
binding = env0_34;
|
|
reducibleJoin94: while (true) {
|
|
if (binding) {
|
|
embeds = a0.embeds;
|
|
length = embeds.length;
|
|
value44 = length > 0;
|
|
r7 = value44;
|
|
break reducibleJoin94;
|
|
}
|
|
r7 = binding;
|
|
break reducibleJoin94;
|
|
}
|
|
reducibleJoin96: while (true) {
|
|
if (r7) {
|
|
binding = env0_28;
|
|
add = binding.add;
|
|
id = a0.id;
|
|
Reflect.apply(add, binding, [id]);
|
|
break reducibleJoin96;
|
|
}
|
|
break reducibleJoin96;
|
|
}
|
|
type = a0.type;
|
|
THREAD_STARTER_MESSAGE = MessageTypes.THREAD_STARTER_MESSAGE;
|
|
value45 = type === THREAD_STARTER_MESSAGE;
|
|
reducibleJoin98: while (true) {
|
|
if (value45) {
|
|
threadStartingReferenceMessage = props.threadStartingReferenceMessage;
|
|
threadStartingReferenceMessage2 = env1_0.threadStartingReferenceMessage;
|
|
value46 = threadStartingReferenceMessage !== threadStartingReferenceMessage2;
|
|
r5 = value46;
|
|
break reducibleJoin98;
|
|
}
|
|
r5 = value45;
|
|
break reducibleJoin98;
|
|
}
|
|
reducibleJoin100: while (true) {
|
|
if (r5) {
|
|
binding = env0_28;
|
|
add = binding.add;
|
|
id = a0.id;
|
|
Reflect.apply(add, binding, [id]);
|
|
break reducibleJoin100;
|
|
}
|
|
break reducibleJoin100;
|
|
}
|
|
result_12Binding = result_12;
|
|
reducibleJoin102: while (true) {
|
|
if (result_12Binding) {
|
|
applicationId = a0.applicationId;
|
|
value47 = applicationId != null;
|
|
r5 = value47;
|
|
break reducibleJoin102;
|
|
}
|
|
r5 = result_12Binding;
|
|
break reducibleJoin102;
|
|
}
|
|
reducibleJoin104: while (true) {
|
|
if (r5) {
|
|
invalidApplicationIds = props.invalidApplicationIds;
|
|
includes = invalidApplicationIds.includes;
|
|
applicationId = a0.applicationId;
|
|
value48 = Reflect.apply(includes, invalidApplicationIds,
|
|
[applicationId]);
|
|
r5 = value48;
|
|
break reducibleJoin104;
|
|
}
|
|
break reducibleJoin104;
|
|
}
|
|
reducibleJoin106: while (true) {
|
|
if (r5) {
|
|
binding = env0_28;
|
|
add = binding.add;
|
|
id = a0.id;
|
|
Reflect.apply(add, binding, [id]);
|
|
break reducibleJoin106;
|
|
}
|
|
break reducibleJoin106;
|
|
}
|
|
reducibleJoin111: while (true) {
|
|
if (env0_17) {
|
|
referralTrialOfferId = a0.referralTrialOfferId;
|
|
value49 = referralTrialOfferId != null;
|
|
reducibleJoin109: while (true) {
|
|
if (value49) {
|
|
resolvedReferralTrialOfferIds = env1_0.resolvedReferralTrialOfferIds;
|
|
includes = resolvedReferralTrialOfferIds.includes;
|
|
value50 = Reflect.apply(includes, resolvedReferralTrialOfferIds,
|
|
[referralTrialOfferId]);
|
|
r5 = value50;
|
|
break reducibleJoin109;
|
|
}
|
|
r5 = value49;
|
|
break reducibleJoin109;
|
|
}
|
|
if (r5) {
|
|
binding = env0_28;
|
|
add = binding.add;
|
|
id = a0.id;
|
|
Reflect.apply(add, binding, [id]);
|
|
break reducibleJoin111;
|
|
}
|
|
break reducibleJoin111;
|
|
}
|
|
break reducibleJoin111;
|
|
}
|
|
result_14Binding = result_14;
|
|
reducibleJoin113: while (true) {
|
|
if (result_14Binding) {
|
|
codedLinks = a0.codedLinks;
|
|
length = codedLinks.length;
|
|
value51 = length > 0;
|
|
r5 = value51;
|
|
break reducibleJoin113;
|
|
}
|
|
r5 = result_14Binding;
|
|
break reducibleJoin113;
|
|
}
|
|
reducibleJoin115: while (true) {
|
|
if (r5) {
|
|
binding = env0_28;
|
|
add = binding.add;
|
|
id = a0.id;
|
|
Reflect.apply(add, binding, [id]);
|
|
break reducibleJoin115;
|
|
}
|
|
break reducibleJoin115;
|
|
}
|
|
if (!result_16) {
|
|
if (!result_19) {
|
|
break reducibleJoin143;
|
|
}
|
|
}
|
|
activity = a0.activity;
|
|
reducibleJoin119: while (true) {
|
|
if (activity == null) {
|
|
party_id = value43;
|
|
break reducibleJoin119;
|
|
}
|
|
party_id = activity.party_id;
|
|
break reducibleJoin119;
|
|
}
|
|
if (party_id == null) {
|
|
break reducibleJoin143;
|
|
}
|
|
binding = env0_28;
|
|
binding.add(a0.id);
|
|
break reducibleJoin143;
|
|
}
|
|
}
|
|
}
|
|
binding = env0_28;
|
|
add = binding.add;
|
|
id = a0.id;
|
|
Reflect.apply(add, binding, [id]);
|
|
break reducibleJoin143;
|
|
}
|
|
}
|
|
codedLinks = a0.codedLinks;
|
|
length = codedLinks.length;
|
|
if (length > 0) {
|
|
value35 = environment.__proto__.__proto__;
|
|
_createForOfIteratorHelperLoose_86663Binding = _createForOfIteratorHelperLoose_86663;
|
|
codedLinks = a0.codedLinks;
|
|
value36 = _createForOfIteratorHelperLoose_86663Binding(codedLinks);
|
|
value37 = value36();
|
|
done = value37.done;
|
|
if (!done) {
|
|
r7 = value37;
|
|
reducibleLoop78: while (true) {
|
|
value38 = r7.value;
|
|
type = value38.type;
|
|
code = value38.code;
|
|
SOCIAL_LAYER_STOREFRONT = CodedLinkType.SOCIAL_LAYER_STOREFRONT;
|
|
if (type !== SOCIAL_LAYER_STOREFRONT) {
|
|
SOCIAL_LAYER_STOREFRONT_APP = CodedLinkType.SOCIAL_LAYER_STOREFRONT_APP;
|
|
reducibleJoin80: while (true) {
|
|
if (type !== SOCIAL_LAYER_STOREFRONT_APP) {
|
|
value41 = value36();
|
|
done = value41.done;
|
|
if (done) {
|
|
break reducibleLoop78;
|
|
}
|
|
r7 = value41;
|
|
continue reducibleLoop78;
|
|
}
|
|
break reducibleJoin80;
|
|
}
|
|
}
|
|
split = code.split;
|
|
value39 = Reflect.apply(split, code, ['-']);
|
|
property = env2_4(value39, 1)[0];
|
|
fetchingSkuIds = props.fetchingSkuIds;
|
|
includes = fetchingSkuIds.includes;
|
|
if (Reflect.apply(includes, fetchingSkuIds, [property])) {
|
|
binding = env0_28;
|
|
binding.add(a0.id);
|
|
return undefined;
|
|
}
|
|
get = SKUStore.get;
|
|
value40 = Reflect.apply(get, SKUStore, [property]);
|
|
if (value40 != null) {
|
|
invalidApplicationIds = props.invalidApplicationIds;
|
|
includes = invalidApplicationIds.includes;
|
|
applicationId = value40.applicationId;
|
|
reducibleJoin83: while (true) {
|
|
if (Reflect.apply(includes, invalidApplicationIds, [applicationId])) {
|
|
binding = env0_28;
|
|
binding.add(a0.id);
|
|
return undefined;
|
|
}
|
|
break reducibleJoin83;
|
|
}
|
|
}
|
|
value41 = value36();
|
|
done = value41.done;
|
|
if (done) {
|
|
break reducibleLoop78;
|
|
}
|
|
r7 = value41;
|
|
continue reducibleLoop78;
|
|
}
|
|
}
|
|
}
|
|
author = a0.author;
|
|
if (author == null) {
|
|
break reducibleJoin143;
|
|
}
|
|
value42 = environment.__proto__.__proto__;
|
|
value43 = undefined;
|
|
defaultImport2 = importDefault(11523) /* metro dependency 11523: MessagesUtils */;
|
|
messageAuthorActivitiesChanged = defaultImport2.messageAuthorActivitiesChanged;
|
|
if (!Reflect.apply(messageAuthorActivitiesChanged, defaultImport2, [a0, props, env1_0])) {
|
|
defaultImport3 = importDefault(11523) /* metro dependency 11523: MessagesUtils */;
|
|
codedLinksChanged = defaultImport3.codedLinksChanged;
|
|
if (!Reflect.apply(codedLinksChanged, defaultImport3, [a0, props, env1_0])) {
|
|
if (env0_1) {
|
|
defaultImport4 = importDefault(11523) /* metro dependency 11523: MessagesUtils */;
|
|
giftCodesChanged = defaultImport4.giftCodesChanged;
|
|
if (Reflect.apply(giftCodesChanged, defaultImport4, [a0, props, env1_0])) {
|
|
binding = env0_28;
|
|
add = binding.add;
|
|
id = a0.id;
|
|
Reflect.apply(add, binding, [id]);
|
|
break reducibleJoin143;
|
|
}
|
|
}
|
|
defaultImport5 = importDefault(11523) /* metro dependency 11523: MessagesUtils */;
|
|
mediaPostPreviewEmbedsChanged = defaultImport5.mediaPostPreviewEmbedsChanged;
|
|
if (!Reflect.apply(mediaPostPreviewEmbedsChanged, defaultImport5, [a0, props, env1_0])) {
|
|
binding = env0_34;
|
|
reducibleJoin94: while (true) {
|
|
if (binding) {
|
|
embeds = a0.embeds;
|
|
length = embeds.length;
|
|
value44 = length > 0;
|
|
r7 = value44;
|
|
break reducibleJoin94;
|
|
}
|
|
r7 = binding;
|
|
break reducibleJoin94;
|
|
}
|
|
reducibleJoin96: while (true) {
|
|
if (r7) {
|
|
binding = env0_28;
|
|
add = binding.add;
|
|
id = a0.id;
|
|
Reflect.apply(add, binding, [id]);
|
|
break reducibleJoin96;
|
|
}
|
|
break reducibleJoin96;
|
|
}
|
|
type = a0.type;
|
|
THREAD_STARTER_MESSAGE = MessageTypes.THREAD_STARTER_MESSAGE;
|
|
value45 = type === THREAD_STARTER_MESSAGE;
|
|
reducibleJoin98: while (true) {
|
|
if (value45) {
|
|
threadStartingReferenceMessage = props.threadStartingReferenceMessage;
|
|
threadStartingReferenceMessage2 = env1_0.threadStartingReferenceMessage;
|
|
value46 = threadStartingReferenceMessage !== threadStartingReferenceMessage2;
|
|
r5 = value46;
|
|
break reducibleJoin98;
|
|
}
|
|
r5 = value45;
|
|
break reducibleJoin98;
|
|
}
|
|
reducibleJoin100: while (true) {
|
|
if (r5) {
|
|
binding = env0_28;
|
|
add = binding.add;
|
|
id = a0.id;
|
|
Reflect.apply(add, binding, [id]);
|
|
break reducibleJoin100;
|
|
}
|
|
break reducibleJoin100;
|
|
}
|
|
result_12Binding = result_12;
|
|
reducibleJoin102: while (true) {
|
|
if (result_12Binding) {
|
|
applicationId = a0.applicationId;
|
|
value47 = applicationId != null;
|
|
r5 = value47;
|
|
break reducibleJoin102;
|
|
}
|
|
r5 = result_12Binding;
|
|
break reducibleJoin102;
|
|
}
|
|
reducibleJoin104: while (true) {
|
|
if (r5) {
|
|
invalidApplicationIds = props.invalidApplicationIds;
|
|
includes = invalidApplicationIds.includes;
|
|
applicationId = a0.applicationId;
|
|
value48 = Reflect.apply(includes, invalidApplicationIds, [applicationId]);
|
|
r5 = value48;
|
|
break reducibleJoin104;
|
|
}
|
|
break reducibleJoin104;
|
|
}
|
|
reducibleJoin106: while (true) {
|
|
if (r5) {
|
|
binding = env0_28;
|
|
add = binding.add;
|
|
id = a0.id;
|
|
Reflect.apply(add, binding, [id]);
|
|
break reducibleJoin106;
|
|
}
|
|
break reducibleJoin106;
|
|
}
|
|
reducibleJoin111: while (true) {
|
|
if (env0_17) {
|
|
referralTrialOfferId = a0.referralTrialOfferId;
|
|
value49 = referralTrialOfferId != null;
|
|
reducibleJoin109: while (true) {
|
|
if (value49) {
|
|
resolvedReferralTrialOfferIds = env1_0.resolvedReferralTrialOfferIds;
|
|
includes = resolvedReferralTrialOfferIds.includes;
|
|
value50 = Reflect.apply(includes, resolvedReferralTrialOfferIds,
|
|
[referralTrialOfferId]);
|
|
r5 = value50;
|
|
break reducibleJoin109;
|
|
}
|
|
r5 = value49;
|
|
break reducibleJoin109;
|
|
}
|
|
if (r5) {
|
|
binding = env0_28;
|
|
add = binding.add;
|
|
id = a0.id;
|
|
Reflect.apply(add, binding, [id]);
|
|
break reducibleJoin111;
|
|
}
|
|
break reducibleJoin111;
|
|
}
|
|
break reducibleJoin111;
|
|
}
|
|
result_14Binding = result_14;
|
|
reducibleJoin113: while (true) {
|
|
if (result_14Binding) {
|
|
codedLinks = a0.codedLinks;
|
|
length = codedLinks.length;
|
|
value51 = length > 0;
|
|
r5 = value51;
|
|
break reducibleJoin113;
|
|
}
|
|
r5 = result_14Binding;
|
|
break reducibleJoin113;
|
|
}
|
|
reducibleJoin115: while (true) {
|
|
if (r5) {
|
|
binding = env0_28;
|
|
add = binding.add;
|
|
id = a0.id;
|
|
Reflect.apply(add, binding, [id]);
|
|
break reducibleJoin115;
|
|
}
|
|
break reducibleJoin115;
|
|
}
|
|
if (!result_16) {
|
|
if (!result_19) {
|
|
break reducibleJoin143;
|
|
}
|
|
}
|
|
activity = a0.activity;
|
|
reducibleJoin119: while (true) {
|
|
if (activity == null) {
|
|
party_id = value43;
|
|
break reducibleJoin119;
|
|
}
|
|
party_id = activity.party_id;
|
|
break reducibleJoin119;
|
|
}
|
|
if (party_id == null) {
|
|
break reducibleJoin143;
|
|
}
|
|
binding = env0_28;
|
|
binding.add(a0.id);
|
|
break reducibleJoin143;
|
|
}
|
|
}
|
|
}
|
|
binding = env0_28;
|
|
add = binding.add;
|
|
id = a0.id;
|
|
Reflect.apply(add, binding, [id]);
|
|
break reducibleJoin143;
|
|
}
|
|
if (result_7) {
|
|
value19 = environment.__proto__;
|
|
guildId = env1_0.guildId;
|
|
reducibleJoin39: while (true) {
|
|
if (guildId == null) {
|
|
break reducibleJoin39;
|
|
}
|
|
author = a0.author;
|
|
value20 = undefined;
|
|
reducibleJoin38: while (true) {
|
|
if (author == null) {
|
|
id = value20;
|
|
break reducibleJoin38;
|
|
}
|
|
id = author.id;
|
|
break reducibleJoin38;
|
|
}
|
|
if (id != null) {
|
|
messageAuthorMembers = env1_0.messageAuthorMembers;
|
|
author = a0.author;
|
|
id = author.id;
|
|
property = messageAuthorMembers[id];
|
|
messageAuthorMembers = props.messageAuthorMembers;
|
|
author = a0.author;
|
|
id = author.id;
|
|
if (property === messageAuthorMembers[id]) {
|
|
break reducibleJoin143;
|
|
}
|
|
binding = env0_28;
|
|
add = binding.add;
|
|
id = a0.id;
|
|
Reflect.apply(add, binding, [id]);
|
|
break reducibleJoin143;
|
|
}
|
|
break reducibleJoin39;
|
|
}
|
|
}
|
|
if (result_8) {
|
|
author = a0.author;
|
|
id = author.id;
|
|
value21 = environment.__proto__;
|
|
currentUserId = env1_0.currentUserId;
|
|
reducibleJoin41: while (true) {
|
|
if (id === currentUserId) {
|
|
binding = env0_28;
|
|
add = binding.add;
|
|
id = a0.id;
|
|
Reflect.apply(add, binding, [id]);
|
|
break reducibleJoin143;
|
|
}
|
|
break reducibleJoin41;
|
|
}
|
|
}
|
|
if (result) {
|
|
interactionStates = props.interactionStates;
|
|
id = a0.id;
|
|
property = interactionStates[id];
|
|
value22 = environment.__proto__;
|
|
interactionStates = env1_0.interactionStates;
|
|
id = a0.id;
|
|
reducibleJoin43: while (true) {
|
|
if (property !== interactionStates[id]) {
|
|
binding = env0_28;
|
|
add = binding.add;
|
|
id = a0.id;
|
|
Reflect.apply(add, binding, [id]);
|
|
break reducibleJoin143;
|
|
}
|
|
break reducibleJoin43;
|
|
}
|
|
}
|
|
if (result_4) {
|
|
interactionComponentStates = props.interactionComponentStates;
|
|
get = interactionComponentStates.get;
|
|
id = a0.id;
|
|
value23 = Reflect.apply(get, interactionComponentStates, [id]);
|
|
value24 = environment.__proto__;
|
|
interactionComponentStates = env1_0.interactionComponentStates;
|
|
get = interactionComponentStates.get;
|
|
id = a0.id;
|
|
reducibleJoin45: while (true) {
|
|
if (value23 !== Reflect.apply(get, interactionComponentStates, [id])) {
|
|
binding = env0_28;
|
|
add = binding.add;
|
|
id = a0.id;
|
|
Reflect.apply(add, binding, [id]);
|
|
break reducibleJoin143;
|
|
}
|
|
break reducibleJoin45;
|
|
}
|
|
}
|
|
if (result_5) {
|
|
components = a0.components;
|
|
length = components.length;
|
|
reducibleJoin47: while (true) {
|
|
if (length !== 0) {
|
|
binding = env0_28;
|
|
add = binding.add;
|
|
id = a0.id;
|
|
Reflect.apply(add, binding, [id]);
|
|
break reducibleJoin143;
|
|
}
|
|
break reducibleJoin47;
|
|
}
|
|
}
|
|
if (result_2) {
|
|
channelPolls = props.channelPolls;
|
|
id = a0.id;
|
|
property = channelPolls[id];
|
|
value25 = environment.__proto__;
|
|
channelPolls = env1_0.channelPolls;
|
|
id = a0.id;
|
|
reducibleJoin49: while (true) {
|
|
if (property !== channelPolls[id]) {
|
|
binding = env0_28;
|
|
add = binding.add;
|
|
id = a0.id;
|
|
Reflect.apply(add, binding, [id]);
|
|
break reducibleJoin143;
|
|
}
|
|
break reducibleJoin49;
|
|
}
|
|
}
|
|
if (result_3) {
|
|
messageReference = a0.messageReference;
|
|
value26 = undefined;
|
|
reducibleJoin52: while (true) {
|
|
if (messageReference == null) {
|
|
message_id = value26;
|
|
break reducibleJoin52;
|
|
}
|
|
message_id = messageReference.message_id;
|
|
break reducibleJoin52;
|
|
}
|
|
reducibleJoin54: while (true) {
|
|
if (message_id == null) {
|
|
break reducibleJoin54;
|
|
}
|
|
messageReferencePolls = props.messageReferencePolls;
|
|
property = messageReferencePolls[message_id];
|
|
value27 = environment.__proto__;
|
|
messageReferencePolls = env1_0.messageReferencePolls;
|
|
if (property !== messageReferencePolls[message_id]) {
|
|
binding = env0_28;
|
|
binding.add(a0.id);
|
|
return value26;
|
|
}
|
|
break reducibleJoin54;
|
|
}
|
|
}
|
|
if (result_11) {
|
|
unloadedContentEntryMessageIds = props.unloadedContentEntryMessageIds;
|
|
has = unloadedContentEntryMessageIds.has;
|
|
id = a0.id;
|
|
value28 = Reflect.apply(has, unloadedContentEntryMessageIds, [id]);
|
|
value29 = environment.__proto__;
|
|
unloadedContentEntryMessageIds = env1_0.unloadedContentEntryMessageIds;
|
|
has = unloadedContentEntryMessageIds.has;
|
|
id = a0.id;
|
|
reducibleJoin56: while (true) {
|
|
if (value28 !== Reflect.apply(has, unloadedContentEntryMessageIds, [id])) {
|
|
binding = env0_28;
|
|
add = binding.add;
|
|
id = a0.id;
|
|
Reflect.apply(add, binding, [id]);
|
|
break reducibleJoin143;
|
|
}
|
|
break reducibleJoin56;
|
|
}
|
|
}
|
|
value30 = environment.__proto__;
|
|
channel = env1_0.channel;
|
|
isForumPost = channel.isForumPost;
|
|
if (Reflect.apply(isForumPost, channel, [])) {
|
|
reducibleJoin60: while (true) {
|
|
reducibleJoin59: while (true) {
|
|
if (env0_11) {
|
|
break reducibleJoin59;
|
|
}
|
|
if (result_10) {
|
|
break reducibleJoin59;
|
|
}
|
|
break reducibleJoin60;
|
|
}
|
|
id = a0.id;
|
|
value31 = environment.__proto__.__proto__;
|
|
defaultImport = importDefault(21) /* metro dependency 21: SnowflakeUtils */;
|
|
castChannelIdAsMessageId = defaultImport.castChannelIdAsMessageId;
|
|
channelId = env1_0.channelId;
|
|
if (id === Reflect.apply(castChannelIdAsMessageId, defaultImport, [channelId])) {
|
|
binding = env0_28;
|
|
add = binding.add;
|
|
id = a0.id;
|
|
Reflect.apply(add, binding, [id]);
|
|
break reducibleJoin143;
|
|
}
|
|
break reducibleJoin60;
|
|
}
|
|
}
|
|
if (env0_15) {
|
|
activityInstance = a0.activityInstance;
|
|
reducibleJoin62: while (true) {
|
|
if (activityInstance != null) {
|
|
binding = env0_28;
|
|
add = binding.add;
|
|
id = a0.id;
|
|
Reflect.apply(add, binding, [id]);
|
|
break reducibleJoin143;
|
|
}
|
|
break reducibleJoin62;
|
|
}
|
|
}
|
|
result_13Binding = result_13;
|
|
reducibleJoin66: while (true) {
|
|
if (result_13Binding) {
|
|
activity = a0.activity;
|
|
value32 = undefined;
|
|
reducibleJoin65: while (true) {
|
|
if (activity == null) {
|
|
party_id = value32;
|
|
break reducibleJoin65;
|
|
}
|
|
party_id = activity.party_id;
|
|
break reducibleJoin65;
|
|
}
|
|
value33 = party_id != null;
|
|
r3 = value33;
|
|
break reducibleJoin66;
|
|
}
|
|
r3 = result_13Binding;
|
|
break reducibleJoin66;
|
|
}
|
|
reducibleJoin68: while (true) {
|
|
if (r3) {
|
|
binding = env0_28;
|
|
add = binding.add;
|
|
id = a0.id;
|
|
Reflect.apply(add, binding, [id]);
|
|
break reducibleJoin68;
|
|
}
|
|
break reducibleJoin68;
|
|
}
|
|
if (result_20) {
|
|
application = a0.application;
|
|
reducibleJoin70: while (true) {
|
|
if (application != null) {
|
|
binding = env0_28;
|
|
add = binding.add;
|
|
id = a0.id;
|
|
Reflect.apply(add, binding, [id]);
|
|
break reducibleJoin143;
|
|
}
|
|
break reducibleJoin70;
|
|
}
|
|
}
|
|
if (result_21) {
|
|
author = a0.author;
|
|
value34 = undefined;
|
|
reducibleJoin73: while (true) {
|
|
if (author == null) {
|
|
id = value34;
|
|
break reducibleJoin73;
|
|
}
|
|
id = author.id;
|
|
break reducibleJoin73;
|
|
}
|
|
currentUserId = env1_0.currentUserId;
|
|
reducibleJoin74: while (true) {
|
|
if (id === currentUserId) {
|
|
binding = env0_28;
|
|
add = binding.add;
|
|
id = a0.id;
|
|
Reflect.apply(add, binding, [id]);
|
|
break reducibleJoin143;
|
|
}
|
|
break reducibleJoin74;
|
|
}
|
|
}
|
|
if (!result_22) {
|
|
result_12Binding = result_12;
|
|
reducibleJoin76: while (true) {
|
|
if (result_12Binding) {
|
|
break reducibleJoin76;
|
|
}
|
|
author = a0.author;
|
|
if (author == null) {
|
|
break reducibleJoin143;
|
|
}
|
|
value42 = environment.__proto__.__proto__;
|
|
value43 = undefined;
|
|
defaultImport2 = importDefault(11523) /* metro dependency 11523: MessagesUtils */;
|
|
messageAuthorActivitiesChanged = defaultImport2.messageAuthorActivitiesChanged;
|
|
if (!Reflect.apply(messageAuthorActivitiesChanged, defaultImport2, [a0, props, env1_0])) {
|
|
defaultImport3 = importDefault(11523) /* metro dependency 11523: MessagesUtils */;
|
|
codedLinksChanged = defaultImport3.codedLinksChanged;
|
|
if (!Reflect.apply(codedLinksChanged, defaultImport3, [a0, props, env1_0])) {
|
|
if (env0_1) {
|
|
defaultImport4 = importDefault(11523) /* metro dependency 11523: MessagesUtils */;
|
|
giftCodesChanged = defaultImport4.giftCodesChanged;
|
|
if (Reflect.apply(giftCodesChanged, defaultImport4, [a0, props, env1_0])) {
|
|
binding = env0_28;
|
|
add = binding.add;
|
|
id = a0.id;
|
|
Reflect.apply(add, binding, [id]);
|
|
break reducibleJoin143;
|
|
}
|
|
}
|
|
defaultImport5 = importDefault(11523) /* metro dependency 11523: MessagesUtils */;
|
|
mediaPostPreviewEmbedsChanged = defaultImport5.mediaPostPreviewEmbedsChanged;
|
|
if (!Reflect.apply(mediaPostPreviewEmbedsChanged, defaultImport5, [a0, props,
|
|
env1_0])) {
|
|
binding = env0_34;
|
|
reducibleJoin94: while (true) {
|
|
if (binding) {
|
|
embeds = a0.embeds;
|
|
length = embeds.length;
|
|
value44 = length > 0;
|
|
r7 = value44;
|
|
break reducibleJoin94;
|
|
}
|
|
r7 = binding;
|
|
break reducibleJoin94;
|
|
}
|
|
reducibleJoin96: while (true) {
|
|
if (r7) {
|
|
binding = env0_28;
|
|
add = binding.add;
|
|
id = a0.id;
|
|
Reflect.apply(add, binding, [id]);
|
|
break reducibleJoin96;
|
|
}
|
|
break reducibleJoin96;
|
|
}
|
|
type = a0.type;
|
|
THREAD_STARTER_MESSAGE = MessageTypes.THREAD_STARTER_MESSAGE;
|
|
value45 = type === THREAD_STARTER_MESSAGE;
|
|
reducibleJoin98: while (true) {
|
|
if (value45) {
|
|
threadStartingReferenceMessage = props.threadStartingReferenceMessage;
|
|
threadStartingReferenceMessage2 = env1_0.threadStartingReferenceMessage;
|
|
value46 = threadStartingReferenceMessage !== threadStartingReferenceMessage2;
|
|
r5 = value46;
|
|
break reducibleJoin98;
|
|
}
|
|
r5 = value45;
|
|
break reducibleJoin98;
|
|
}
|
|
reducibleJoin100: while (true) {
|
|
if (r5) {
|
|
binding = env0_28;
|
|
add = binding.add;
|
|
id = a0.id;
|
|
Reflect.apply(add, binding, [id]);
|
|
break reducibleJoin100;
|
|
}
|
|
break reducibleJoin100;
|
|
}
|
|
result_12Binding = result_12;
|
|
reducibleJoin102: while (true) {
|
|
if (result_12Binding) {
|
|
applicationId = a0.applicationId;
|
|
value47 = applicationId != null;
|
|
r5 = value47;
|
|
break reducibleJoin102;
|
|
}
|
|
r5 = result_12Binding;
|
|
break reducibleJoin102;
|
|
}
|
|
reducibleJoin104: while (true) {
|
|
if (r5) {
|
|
invalidApplicationIds = props.invalidApplicationIds;
|
|
includes = invalidApplicationIds.includes;
|
|
applicationId = a0.applicationId;
|
|
value48 = Reflect.apply(includes, invalidApplicationIds, [applicationId]);
|
|
r5 = value48;
|
|
break reducibleJoin104;
|
|
}
|
|
break reducibleJoin104;
|
|
}
|
|
reducibleJoin106: while (true) {
|
|
if (r5) {
|
|
binding = env0_28;
|
|
add = binding.add;
|
|
id = a0.id;
|
|
Reflect.apply(add, binding, [id]);
|
|
break reducibleJoin106;
|
|
}
|
|
break reducibleJoin106;
|
|
}
|
|
reducibleJoin111: while (true) {
|
|
if (env0_17) {
|
|
referralTrialOfferId = a0.referralTrialOfferId;
|
|
value49 = referralTrialOfferId != null;
|
|
reducibleJoin109: while (true) {
|
|
if (value49) {
|
|
resolvedReferralTrialOfferIds = env1_0.resolvedReferralTrialOfferIds;
|
|
includes = resolvedReferralTrialOfferIds.includes;
|
|
value50 = Reflect.apply(includes, resolvedReferralTrialOfferIds,
|
|
[referralTrialOfferId]);
|
|
r5 = value50;
|
|
break reducibleJoin109;
|
|
}
|
|
r5 = value49;
|
|
break reducibleJoin109;
|
|
}
|
|
if (r5) {
|
|
binding = env0_28;
|
|
add = binding.add;
|
|
id = a0.id;
|
|
Reflect.apply(add, binding, [id]);
|
|
break reducibleJoin111;
|
|
}
|
|
break reducibleJoin111;
|
|
}
|
|
break reducibleJoin111;
|
|
}
|
|
result_14Binding = result_14;
|
|
reducibleJoin113: while (true) {
|
|
if (result_14Binding) {
|
|
codedLinks = a0.codedLinks;
|
|
length = codedLinks.length;
|
|
value51 = length > 0;
|
|
r5 = value51;
|
|
break reducibleJoin113;
|
|
}
|
|
r5 = result_14Binding;
|
|
break reducibleJoin113;
|
|
}
|
|
reducibleJoin115: while (true) {
|
|
if (r5) {
|
|
binding = env0_28;
|
|
add = binding.add;
|
|
id = a0.id;
|
|
Reflect.apply(add, binding, [id]);
|
|
break reducibleJoin115;
|
|
}
|
|
break reducibleJoin115;
|
|
}
|
|
if (!result_16) {
|
|
if (!result_19) {
|
|
break reducibleJoin143;
|
|
}
|
|
}
|
|
activity = a0.activity;
|
|
reducibleJoin119: while (true) {
|
|
if (activity == null) {
|
|
party_id = value43;
|
|
break reducibleJoin119;
|
|
}
|
|
party_id = activity.party_id;
|
|
break reducibleJoin119;
|
|
}
|
|
if (party_id == null) {
|
|
break reducibleJoin143;
|
|
}
|
|
binding = env0_28;
|
|
binding.add(a0.id);
|
|
break reducibleJoin143;
|
|
}
|
|
}
|
|
}
|
|
binding = env0_28;
|
|
add = binding.add;
|
|
id = a0.id;
|
|
Reflect.apply(add, binding, [id]);
|
|
break reducibleJoin143;
|
|
}
|
|
}
|
|
codedLinks = a0.codedLinks;
|
|
length = codedLinks.length;
|
|
if (length > 0) {
|
|
value35 = environment.__proto__.__proto__;
|
|
_createForOfIteratorHelperLoose_86663Binding = _createForOfIteratorHelperLoose_86663;
|
|
codedLinks = a0.codedLinks;
|
|
value36 = _createForOfIteratorHelperLoose_86663Binding(codedLinks);
|
|
value37 = value36();
|
|
done = value37.done;
|
|
if (!done) {
|
|
r7 = value37;
|
|
reducibleLoop78: while (true) {
|
|
value38 = r7.value;
|
|
type = value38.type;
|
|
code = value38.code;
|
|
SOCIAL_LAYER_STOREFRONT = CodedLinkType.SOCIAL_LAYER_STOREFRONT;
|
|
if (type !== SOCIAL_LAYER_STOREFRONT) {
|
|
SOCIAL_LAYER_STOREFRONT_APP = CodedLinkType.SOCIAL_LAYER_STOREFRONT_APP;
|
|
reducibleJoin80: while (true) {
|
|
if (type !== SOCIAL_LAYER_STOREFRONT_APP) {
|
|
value41 = value36();
|
|
done = value41.done;
|
|
if (done) {
|
|
break reducibleLoop78;
|
|
}
|
|
r7 = value41;
|
|
continue reducibleLoop78;
|
|
}
|
|
break reducibleJoin80;
|
|
}
|
|
}
|
|
split = code.split;
|
|
value39 = Reflect.apply(split, code, ['-']);
|
|
property = env2_4(value39, 1)[0];
|
|
fetchingSkuIds = props.fetchingSkuIds;
|
|
includes = fetchingSkuIds.includes;
|
|
if (Reflect.apply(includes, fetchingSkuIds, [property])) {
|
|
binding = env0_28;
|
|
binding.add(a0.id);
|
|
return undefined;
|
|
}
|
|
get = SKUStore.get;
|
|
value40 = Reflect.apply(get, SKUStore, [property]);
|
|
if (value40 != null) {
|
|
invalidApplicationIds = props.invalidApplicationIds;
|
|
includes = invalidApplicationIds.includes;
|
|
applicationId = value40.applicationId;
|
|
reducibleJoin83: while (true) {
|
|
if (Reflect.apply(includes, invalidApplicationIds, [applicationId])) {
|
|
binding = env0_28;
|
|
binding.add(a0.id);
|
|
return undefined;
|
|
}
|
|
break reducibleJoin83;
|
|
}
|
|
}
|
|
value41 = value36();
|
|
done = value41.done;
|
|
if (done) {
|
|
break reducibleLoop78;
|
|
}
|
|
r7 = value41;
|
|
continue reducibleLoop78;
|
|
}
|
|
}
|
|
}
|
|
author = a0.author;
|
|
if (author == null) {
|
|
break reducibleJoin143;
|
|
}
|
|
value42 = environment.__proto__.__proto__;
|
|
value43 = undefined;
|
|
defaultImport2 = importDefault(11523) /* metro dependency 11523: MessagesUtils */;
|
|
messageAuthorActivitiesChanged = defaultImport2.messageAuthorActivitiesChanged;
|
|
if (!Reflect.apply(messageAuthorActivitiesChanged, defaultImport2, [a0, props, env1_0])) {
|
|
defaultImport3 = importDefault(11523) /* metro dependency 11523: MessagesUtils */;
|
|
codedLinksChanged = defaultImport3.codedLinksChanged;
|
|
if (!Reflect.apply(codedLinksChanged, defaultImport3, [a0, props, env1_0])) {
|
|
if (env0_1) {
|
|
defaultImport4 = importDefault(11523) /* metro dependency 11523: MessagesUtils */;
|
|
giftCodesChanged = defaultImport4.giftCodesChanged;
|
|
if (Reflect.apply(giftCodesChanged, defaultImport4, [a0, props, env1_0])) {
|
|
binding = env0_28;
|
|
add = binding.add;
|
|
id = a0.id;
|
|
Reflect.apply(add, binding, [id]);
|
|
break reducibleJoin143;
|
|
}
|
|
}
|
|
defaultImport5 = importDefault(11523) /* metro dependency 11523: MessagesUtils */;
|
|
mediaPostPreviewEmbedsChanged = defaultImport5.mediaPostPreviewEmbedsChanged;
|
|
if (!Reflect.apply(mediaPostPreviewEmbedsChanged, defaultImport5, [a0, props, env1_0])) {
|
|
binding = env0_34;
|
|
reducibleJoin94: while (true) {
|
|
if (binding) {
|
|
embeds = a0.embeds;
|
|
length = embeds.length;
|
|
value44 = length > 0;
|
|
r7 = value44;
|
|
break reducibleJoin94;
|
|
}
|
|
r7 = binding;
|
|
break reducibleJoin94;
|
|
}
|
|
reducibleJoin96: while (true) {
|
|
if (r7) {
|
|
binding = env0_28;
|
|
add = binding.add;
|
|
id = a0.id;
|
|
Reflect.apply(add, binding, [id]);
|
|
break reducibleJoin96;
|
|
}
|
|
break reducibleJoin96;
|
|
}
|
|
type = a0.type;
|
|
THREAD_STARTER_MESSAGE = MessageTypes.THREAD_STARTER_MESSAGE;
|
|
value45 = type === THREAD_STARTER_MESSAGE;
|
|
reducibleJoin98: while (true) {
|
|
if (value45) {
|
|
threadStartingReferenceMessage = props.threadStartingReferenceMessage;
|
|
threadStartingReferenceMessage2 = env1_0.threadStartingReferenceMessage;
|
|
value46 = threadStartingReferenceMessage !== threadStartingReferenceMessage2;
|
|
r5 = value46;
|
|
break reducibleJoin98;
|
|
}
|
|
r5 = value45;
|
|
break reducibleJoin98;
|
|
}
|
|
reducibleJoin100: while (true) {
|
|
if (r5) {
|
|
binding = env0_28;
|
|
add = binding.add;
|
|
id = a0.id;
|
|
Reflect.apply(add, binding, [id]);
|
|
break reducibleJoin100;
|
|
}
|
|
break reducibleJoin100;
|
|
}
|
|
result_12Binding = result_12;
|
|
reducibleJoin102: while (true) {
|
|
if (result_12Binding) {
|
|
applicationId = a0.applicationId;
|
|
value47 = applicationId != null;
|
|
r5 = value47;
|
|
break reducibleJoin102;
|
|
}
|
|
r5 = result_12Binding;
|
|
break reducibleJoin102;
|
|
}
|
|
reducibleJoin104: while (true) {
|
|
if (r5) {
|
|
invalidApplicationIds = props.invalidApplicationIds;
|
|
includes = invalidApplicationIds.includes;
|
|
applicationId = a0.applicationId;
|
|
value48 = Reflect.apply(includes, invalidApplicationIds, [applicationId]);
|
|
r5 = value48;
|
|
break reducibleJoin104;
|
|
}
|
|
break reducibleJoin104;
|
|
}
|
|
reducibleJoin106: while (true) {
|
|
if (r5) {
|
|
binding = env0_28;
|
|
add = binding.add;
|
|
id = a0.id;
|
|
Reflect.apply(add, binding, [id]);
|
|
break reducibleJoin106;
|
|
}
|
|
break reducibleJoin106;
|
|
}
|
|
reducibleJoin111: while (true) {
|
|
if (env0_17) {
|
|
referralTrialOfferId = a0.referralTrialOfferId;
|
|
value49 = referralTrialOfferId != null;
|
|
reducibleJoin109: while (true) {
|
|
if (value49) {
|
|
resolvedReferralTrialOfferIds = env1_0.resolvedReferralTrialOfferIds;
|
|
includes = resolvedReferralTrialOfferIds.includes;
|
|
value50 = Reflect.apply(includes, resolvedReferralTrialOfferIds,
|
|
[referralTrialOfferId]);
|
|
r5 = value50;
|
|
break reducibleJoin109;
|
|
}
|
|
r5 = value49;
|
|
break reducibleJoin109;
|
|
}
|
|
if (r5) {
|
|
binding = env0_28;
|
|
add = binding.add;
|
|
id = a0.id;
|
|
Reflect.apply(add, binding, [id]);
|
|
break reducibleJoin111;
|
|
}
|
|
break reducibleJoin111;
|
|
}
|
|
break reducibleJoin111;
|
|
}
|
|
result_14Binding = result_14;
|
|
reducibleJoin113: while (true) {
|
|
if (result_14Binding) {
|
|
codedLinks = a0.codedLinks;
|
|
length = codedLinks.length;
|
|
value51 = length > 0;
|
|
r5 = value51;
|
|
break reducibleJoin113;
|
|
}
|
|
r5 = result_14Binding;
|
|
break reducibleJoin113;
|
|
}
|
|
reducibleJoin115: while (true) {
|
|
if (r5) {
|
|
binding = env0_28;
|
|
add = binding.add;
|
|
id = a0.id;
|
|
Reflect.apply(add, binding, [id]);
|
|
break reducibleJoin115;
|
|
}
|
|
break reducibleJoin115;
|
|
}
|
|
if (!result_16) {
|
|
if (!result_19) {
|
|
break reducibleJoin143;
|
|
}
|
|
}
|
|
activity = a0.activity;
|
|
reducibleJoin119: while (true) {
|
|
if (activity == null) {
|
|
party_id = value43;
|
|
break reducibleJoin119;
|
|
}
|
|
party_id = activity.party_id;
|
|
break reducibleJoin119;
|
|
}
|
|
if (party_id == null) {
|
|
break reducibleJoin143;
|
|
}
|
|
binding = env0_28;
|
|
binding.add(a0.id);
|
|
break reducibleJoin143;
|
|
}
|
|
}
|
|
}
|
|
binding = env0_28;
|
|
add = binding.add;
|
|
id = a0.id;
|
|
Reflect.apply(add, binding, [id]);
|
|
break reducibleJoin143;
|
|
}
|
|
return undefined;
|
|
}
|
|
}
|
|
binding = env0_28;
|
|
binding.add(a0.id);
|
|
}
|
|
|