/* Metro module 13010; source: modules/user_settings/PreloadedUserSettingsMigrations.tsx; dependencies: [1379, 661, 11877, 1314, 1364, 6824, 587, 1350, 566, 1345, 1365, 5065, 2] */ import Flux from '../../external/discord_common/js/packages/flux/index.tsx'; /* Metro dependency 566 */ import ChannelStore from '../../stores/ChannelStore.tsx'; /* Metro dependency 1379 */ import * as FileImportTrackerModule from '../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */ import * as StorageModule from '../../external/discord_common/js/packages/storage/Storage.tsx'; /* Metro dependency 587 */ import * as ConstantsModule from '../../Constants.tsx'; /* Metro dependency 661 */ import * as Preloaded_user_settingsModule from '../../external/discord_common/js/packages/protos/discord_protos/discord_users/v1/preloaded_user_settings.tsx'; /* Metro dependency 1314 */ import * as Uint8ArrayUtilsModule from '../../utils/Uint8ArrayUtils.tsx'; /* Metro dependency 1364 */ import * as Dismissible_contentModule from '../../external/discord_common/js/packages/protos/discord_protos/discord_users/v1/dismissible_content.tsx'; /* Metro dependency 1365 */ import * as HotspotModule from '../hotspot/index.tsx'; /* Metro dependency 6824 */ import * as ConstantsModule2 from '../multi_account/Constants.tsx'; /* Metro dependency 11877 */ function _fun99226(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#99226, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13200:6, offset: 0x021c0875, size: 897 bytes, params: 8, frame: 19 const env0_0 = require; const Object = global.Object; Object.defineProperty(exports, '__esModule', {value: true}); const items2 = [{version: 2, run: run_99229, cleanup: function() { var Storage = require(dependencyMap[6]).Storage; Storage.remove('seenInboxTutorial'); Storage.remove('recentsButtonTab2'); Storage.remove('unread-messages-collapsed-channels'); }}]; items2[1] = {version: 3, run: run_99232, cleanup: function() { }}; items2[2] = {version: 4, run: run_99235, cleanup: function() { var Storage = require(dependencyMap[6]).Storage; Storage.remove('HAS_SEEN_HUB_UPSELL'); }}; items2[3] = {version: 5, run: run_99237, cleanup: function() { }}; items2[4] = {version: 7, run: function(a0) { var migrateHotspotLocationBinding = migrateHotspotLocation; var APPLICATION_COMMAND_TOOLTIP = require(dependencyMap[5]).HotspotLocations.APPLICATION_COMMAND_TOOLTIP; var APPLICATION_COMMAND_TOOLTIP2 = require(dependencyMap[10]).DismissibleContent.APPLICATION_COMMAND_TOOLTIP; return migrateHotspotLocationBinding(a0, APPLICATION_COMMAND_TOOLTIP, APPLICATION_COMMAND_TOOLTIP2); }, cleanup: function() { }}; items2[5] = {version: 8, run: function(a0) { var migrateHotspotLocationBinding = migrateHotspotLocation; var CHANNEL_BANNER_MEMBER_LIST_NOTICE = require(dependencyMap[5]).HotspotLocations.CHANNEL_BANNER_MEMBER_LIST_NOTICE; var CHANNELINFO_CHANNELBANNER_NOTICE = require(dependencyMap[10]).DismissibleContent.CHANNELINFO_CHANNELBANNER_NOTICE; return migrateHotspotLocationBinding(a0, CHANNEL_BANNER_MEMBER_LIST_NOTICE, CHANNELINFO_CHANNELBANNER_NOTICE); }, cleanup: function() { }}; items2[6] = {version: 9, run: run_99243, cleanup: function() { }}; items2[7] = {version: 10, run: run_99245, cleanup: function() { var Storage = require(dependencyMap[6]).Storage; Storage.remove('channelNotices'); }}; items2[8] = {version: 11, run: run_99247, cleanup: function() { }}; items2[9] = {version: 12, run: run_99249, cleanup: function() { var Storage = require(dependencyMap[6]).Storage; Storage.remove('hideNag'); Storage.remove('hideConnectSpotify'); Storage.remove('hideConnectPlayStation'); }}; items2[10] = {version: 13, run: run_99251, cleanup: function() { var Storage = require(dependencyMap[6]).Storage; Storage.remove('hidePremiumPromo'); Storage.remove('hidePremiumTier2TrialEnding'); Storage.remove('hidePremiumReactivateNotice'); }}; items2[11] = {version: 14, run: function(a0) { var migrateHotspotLocationBinding = migrateHotspotLocation; var ACTIVITY_BEB_TUTORIAL = require(dependencyMap[5]).HotspotLocations.ACTIVITY_BEB_TUTORIAL; var ACTIVITIES_TUTORIAL_COACH_MARK = require(dependencyMap[10]).DismissibleContent.ACTIVITIES_TUTORIAL_COACH_MARK; return migrateHotspotLocationBinding(a0, ACTIVITY_BEB_TUTORIAL, ACTIVITIES_TUTORIAL_COACH_MARK); }, cleanup: function() { }}; items2[12] = {version: 15, run: function(a0) { var migrateHotspotLocationBinding = migrateHotspotLocation; var NOW_PLAYING_CONSENT_CARD = require(dependencyMap[5]).HotspotLocations.NOW_PLAYING_CONSENT_CARD; var NOW_PLAYING_CONSENT_CARD2 = require(dependencyMap[10]).DismissibleContent.NOW_PLAYING_CONSENT_CARD; return migrateHotspotLocationBinding(a0, NOW_PLAYING_CONSENT_CARD, NOW_PLAYING_CONSENT_CARD2); }, cleanup: function() { }}; items2[13] = {version: 16, run: run_99257, cleanup: function() { }}; items2[14] = {version: 17, run: run_99259, cleanup: function() { var Storage = require(dependencyMap[6]).Storage; Storage.remove('ExpressionSuggestionsPersistedStore'); }}; items2[15] = {version: 18, run: run_99261, cleanup: function() { }}; items2[16] = {version: 19, run: run_99263, cleanup: function() { var Storage = require(dependencyMap[6]).Storage; Storage.remove('forumHelperCardStorageKey'); }}; items2[17] = {version: 20, run: run_99265, cleanup: function() { var Storage = require(dependencyMap[6]).Storage; Storage.remove('lastChangeLogId'); }}; items2[18] = {version: 21, run: function(a0) { var r0; var value3 = a0.appearance?.uiDensity === require(dependencyMap[3]).UIDensity.COMPACT; if (value3) { a0.appearance.uiDensity = require(dependencyMap[3]).UIDensity.DEFAULT; r0 = true; } else { r0 = value3; } return r0; }, cleanup: function() { }}; (FileImportTrackerModule).fileFinishedImporting('modules/user_settings/PreloadedUserSettingsMigrations.tsx'); exports.default = items2; function migrateDismissibleContent(a0, a1) { // fn#99227, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13200:175, offset: 0x021c0bf6, size: 231 bytes, params: 3, frame: 17 var r0; var value; var UserContentSettings; let userContent = a0.userContent; if (userContent == null) { UserContentSettings = (require(1314) /* metro dependency 1314: preloaded_user_settings */).UserContentSettings; a0.userContent = UserContentSettings.create(); } userContent = a0.userContent; if (userContent.dismissedContents == null) { a0.userContent.dismissedContents = new global.Uint8Array(); } const hasBit = Uint8ArrayUtilsModule.hasBit; userContent = a0.userContent; if (Reflect.apply(hasBit, Uint8ArrayUtilsModule, [userContent.dismissedContents, a1])) { r0 = false; } else { userContent = a0.userContent; value = Uint8ArrayUtilsModule; userContent.dismissedContents = value.addBit(a0.userContent.dismissedContents, a1); value = true; r0 = value; } return r0; } function migrateHotspotLocation(a0, a1, a2) { // fn#99228, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13200:535, offset: 0x021c0cdd, size: 72 bytes, params: 4, frame: 14 const HotspotStore = (HotspotModule).HotspotStore; const hasHiddenHotspot2 = HotspotStore.hasHiddenHotspot(a1); return hasHiddenHotspot2 ? migrateDismissibleContent(a0, a2) : !!hasHiddenHotspot2; } function run_99229(a0) { // fn#99229, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13200:673, offset: 0x021c0d25, size: 474 bytes, params: 2, frame: 35 var r0; var r3; var r9; var r21; var value4; const InboxTab = (Preloaded_user_settingsModule).InboxTab; var propertyName; var propertyName2; var channel; var moduleValue; var mutateUserChannelSettings; var guild_id; var id; var value10; const object = {Mentions: 'Recent Mentions', Unreads: 'Inbox'}; if (a0.inbox != null) { return false; } const InboxSettings = (Preloaded_user_settingsModule).InboxSettings; const value2 = InboxSettings.create(); a0.inbox = value2; const Storage = (StorageModule).Storage; const get = Storage.get; const value3 = false; if (Reflect.apply(get, Storage, ['seenInboxTutorial', value3])) { value4 = true; value2.viewedTutorial = value4; r0 = value4; } else { r0 = value3; } const value5 = Storage.get('recentsButtonTab2'); if (value5 != null) { value2.currentTab = value5 === object.Mentions ? InboxTab.MENTIONS : InboxTab.UNREADS; r0 = true; } const r12 = Storage.get('unread-messages-collapsed-channels') ?? ({}); const value8 = '0'; const properties = Object.keys(r12); const properties2 = 0; const properties3 = properties.length; if (properties !== undefined) { r3 = r0; r9 = properties2; while (true) { propertyName = properties[r9]; propertyName2 = r9 + 1; if (propertyName === undefined) { r0 = r3; break; } if (!r12[propertyName]) { r9 = propertyName2; continue; } channel = ChannelStore.getChannel(propertyName); if (channel == null) { r9 = propertyName2; continue; } moduleValue = require(1350) /* metro dependency 1350: UserSettingsUtils */; mutateUserChannelSettings = moduleValue.mutateUserChannelSettings; guild_id = channel.guild_id; if (guild_id != null) { r21 = guild_id; continue; } r21 = value8; continue; id = channel.id; Reflect.apply(mutateUserChannelSettings, moduleValue, [a0, r21, id, function(a0) { a0.collapsedInInbox = true; }]); value10 = true; r3 = value10; r9 = propertyName2; } } return r0; } function run_99232(a0) { // fn#99232, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13200:1482, offset: 0x021c0f80, size: 264 bytes, params: 2, frame: 18 var r0; var textAndImages; var TextAndImagesSettings; const PersistedStore = (Flux).PersistedStore; const state = PersistedStore.migrateAndReadStoreState('EmojiStore', [_fun99233]).state; if (state == null) { return false; } let diversitySurrogate = state.diversitySurrogate; if (diversitySurrogate != null && state.diversitySurrogate !== '') { textAndImages = a0.textAndImages; if (textAndImages == null) { TextAndImagesSettings = (require(1314) /* metro dependency 1314: preloaded_user_settings */).TextAndImagesSettings; a0.textAndImages = TextAndImagesSettings.create(); } textAndImages = a0.textAndImages; diversitySurrogate = textAndImages.diversitySurrogate; if (diversitySurrogate == null) { a0.textAndImages.diversitySurrogate = (require(1345) /* metro dependency 1345: wrappers */).StringValue.create(); } textAndImages = a0.textAndImages; diversitySurrogate = textAndImages.diversitySurrogate; diversitySurrogate.value = state.diversitySurrogate; r0 = true; } else { r0 = false; } return r0; function _fun99233() { // fn#99233, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13200:1557, offset: 0x021c1088, size: 63 bytes, params: 1, frame: 12 const value = environment.__proto__; const Storage = (StorageModule).Storage; return {diversitySurrogate: Storage.get('EmojiDiversitySurrogate') || ''}; } } function run_99235(a0) { // fn#99235, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13200:2018, offset: 0x021c10c7, size: 166 bytes, params: 2, frame: 17 var r2; var HotspotStore; const Storage = (StorageModule).Storage; const value3 = Storage.get('HAS_SEEN_HUB_UPSELL') === true; if (value3) { r2 = value3; } else { HotspotStore = (require(6824) /* metro dependency 6824: hotspot */).HotspotStore; r2 = HotspotStore.hasHiddenHotspot((require(6824) /* metro dependency 6824: hotspot */).HotspotLocations.HUB_SECOND_EMAIL_CONNECTION_UPSELL); } return r2 && migrateDismissibleContent(a0, (require(1365) /* metro dependency 1365: dismissible_content */).DismissibleContent.HUB_WAITLIST_UPSELL); } function run_99237(a0) { // fn#99237, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13200:2344, offset: 0x021c119f, size: 1461 bytes, params: 2, frame: 19 var r0; const BoolValue = (require(1345) /* metro dependency 1345: wrappers */).BoolValue; a0.textAndImages = a0.textAndImages ?? (require(1314) /* metro dependency 1314: preloaded_user_settings */).TextAndImagesSettings.create(); a0.notifications = a0.notifications ?? (require(1314) /* metro dependency 1314: preloaded_user_settings */).NotificationSettings.create(); a0.privacy = a0.privacy ?? (require(1314) /* metro dependency 1314: preloaded_user_settings */).PrivacySettings.create(); a0.voiceAndVideo = a0.voiceAndVideo ?? (require(1314) /* metro dependency 1314: preloaded_user_settings */).VoiceAndVideoSettings.create(); a0.gameLibrary = a0.gameLibrary ?? (require(1314) /* metro dependency 1314: preloaded_user_settings */).GameLibrarySettings.create(); a0.debug = a0.debug ?? (require(1314) /* metro dependency 1314: preloaded_user_settings */).DebugSettings.create(); const Storage = (StorageModule).Storage; const r5 = Storage.get('UserSettingsStore') ?? ({}); const useRichChatTextBox = r5.useRichChatTextBox; if (typeof useRichChatTextBox !== 'boolean') { r0 = false; } else { a0.textAndImages.useRichChatInput = BoolValue.create({value: r5.useRichChatTextBox}); r0 = true; } if (typeof r5.renderSpoilers === 'string') { a0.textAndImages.renderSpoilers = (require(1345) /* metro dependency 1345: wrappers */).StringValue.create({value: r5.renderSpoilers}); r0 = true; } const useThreadSidebar = r5.useThreadSidebar; if (typeof useThreadSidebar === 'boolean') { a0.textAndImages.useThreadSidebar = BoolValue.create({value: r5.useThreadSidebar}); r0 = true; } if (typeof r5.showInAppNotifications === 'boolean') { a0.notifications.showInAppNotifications = BoolValue.create({value: r5.showInAppNotifications}); r0 = true; } const emojiPickerCollapsedSections = r5.emojiPickerCollapsedSections; let Array = global.Array; if (emojiPickerCollapsedSections instanceof Array) { a0.textAndImages.emojiPickerCollapsedSections = r5.emojiPickerCollapsedSections; r0 = true; } const stickerPickerCollapsedSections = r5.stickerPickerCollapsedSections; Array = global.Array; if (stickerPickerCollapsedSections instanceof Array) { a0.textAndImages.stickerPickerCollapsedSections = r5.stickerPickerCollapsedSections; r0 = true; } if (typeof r5.viewImageDescriptions === 'boolean') { a0.textAndImages.viewImageDescriptions = BoolValue.create({value: r5.viewImageDescriptions}); r0 = true; } if (typeof r5.showCommandSuggestions === 'boolean') { a0.textAndImages.showCommandSuggestions = BoolValue.create({value: r5.showCommandSuggestions}); r0 = true; } if (typeof r5.alwaysPreviewVideo === 'boolean') { a0.voiceAndVideo.alwaysPreviewVideo = BoolValue.create({value: r5.alwaysPreviewVideo}); r0 = true; } if (typeof r5.notifyFriendsOnGoLive === 'boolean') { a0.notifications.notifyFriendsOnGoLive = BoolValue.create({value: r5.notifyFriendsOnGoLive}); r0 = true; } if (typeof r5.installShortcutDesktop === 'boolean') { a0.gameLibrary.installShortcutDesktop = BoolValue.create({value: r5.installShortcutDesktop}); r0 = true; } if (typeof r5.installShortcutStartMenu === 'boolean') { a0.gameLibrary.installShortcutStartMenu = BoolValue.create({value: r5.installShortcutStartMenu}); r0 = true; } if (typeof r5.allowActivityPartyPrivacyFriends === 'boolean') { a0.privacy.allowActivityPartyPrivacyFriends = BoolValue.create({value: r5.allowActivityPartyPrivacyFriends}); r0 = true; } if (typeof r5.allowActivityPartyPrivacyVoiceChannel === 'boolean') { a0.privacy.allowActivityPartyPrivacyVoiceChannel = BoolValue.create({value: r5.allowActivityPartyPrivacyVoiceChannel}); r0 = true; } if (typeof r5.rtcPanelShowVoiceStates === 'boolean') { a0.debug.rtcPanelShowVoiceStates = BoolValue.create({value: r5.rtcPanelShowVoiceStates}); r0 = true; } return r0; } function run_99243(a0) { // fn#99243, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13200:5459, offset: 0x021c17ee, size: 180 bytes, params: 2, frame: 17 const HotspotStore = (HotspotModule).HotspotStore; const hasHiddenHotspot = HotspotStore.hasHiddenHotspot; const HotspotLocations = (HotspotModule).HotspotLocations; let MULTI_ACCOUNT_TOOLTIP = HotspotLocations.MULTI_ACCOUNT_TOOLTIP; if (Reflect.apply(hasHiddenHotspot, HotspotStore, [MULTI_ACCOUNT_TOOLTIP])) { (require(587) /* metro dependency 587: Storage */).Storage.set(MULTIACCOUNT_TOOLTIP_SEEN_KEY, 'true'); } const migrateHotspotLocationBinding = migrateHotspotLocation; MULTI_ACCOUNT_TOOLTIP = HotspotLocations.MULTI_ACCOUNT_TOOLTIP; const DismissibleContent = (Dismissible_contentModule).DismissibleContent; const ACCOUNT_MULTIACCOUNT_TOOLTIP = DismissibleContent.ACCOUNT_MULTIACCOUNT_TOOLTIP; return migrateHotspotLocationBinding(a0, MULTI_ACCOUNT_TOOLTIP, ACCOUNT_MULTIACCOUNT_TOOLTIP); } function run_99245(a0) { // fn#99245, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13200:5736, offset: 0x021c18a2, size: 316 bytes, params: 2, frame: 21 const migrateHotspotLocationBinding = migrateHotspotLocation; const HotspotLocations = (HotspotModule).HotspotLocations; const HUB_LINK_CHANNEL_NOTICE = HotspotLocations.HUB_LINK_CHANNEL_NOTICE; const DismissibleContent = (Dismissible_contentModule).DismissibleContent; const CHANNEL_NOTICE_HUBLINK = DismissibleContent.CHANNEL_NOTICE_HUBLINK; const value2 = migrateHotspotLocationBinding(a0, HUB_LINK_CHANNEL_NOTICE, CHANNEL_NOTICE_HUBLINK); const Storage = (StorageModule).Storage; const r6 = Storage.get('channelNotices') ?? ({}); const INVITE = ChannelNoticeTypes.INVITE; let r0 = r6[INVITE] === false && migrateDismissibleContent(a0, DismissibleContent.CHANNEL_NOTICE_INVITE) || value2; const QUICKSWITCHER = ChannelNoticeTypes.QUICKSWITCHER; r0 = r6[QUICKSWITCHER] === false && migrateDismissibleContent(a0, DismissibleContent.CHANNEL_NOTICE_QUICKSWITCHER) || r0; const GUILD_BOOSTING = ChannelNoticeTypes.GUILD_BOOSTING; r0 = r6[GUILD_BOOSTING] === false && migrateDismissibleContent(a0, DismissibleContent.CHANNEL_NOTICE_PREMIUM_GUILD_SUBSCRIPTION) || r0; return r0; } function run_99247(a0) { // fn#99247, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13200:6363, offset: 0x021c1a10, size: 150 bytes, params: 2, frame: 19 let migrateHotspotLocationBinding = migrateHotspotLocation; const HotspotLocations = (HotspotModule).HotspotLocations; const GUILD_EVENT_UPSELL = HotspotLocations.GUILD_EVENT_UPSELL; const DismissibleContent = (Dismissible_contentModule).DismissibleContent; const GUILD_HEADER_EVENT_UPSELL = DismissibleContent.GUILD_HEADER_EVENT_UPSELL; let r0 = migrateHotspotLocationBinding(a0, GUILD_EVENT_UPSELL, GUILD_HEADER_EVENT_UPSELL) && true; migrateHotspotLocationBinding = migrateHotspotLocation; const ANIMATED_GUILD_BANNER_GUILD_HEADER_TOOLTIP = HotspotLocations.ANIMATED_GUILD_BANNER_GUILD_HEADER_TOOLTIP; const GUILD_HEADER_ANIMATED_GUILD_BANNER = DismissibleContent.GUILD_HEADER_ANIMATED_GUILD_BANNER; r0 = migrateHotspotLocationBinding(a0, ANIMATED_GUILD_BANNER_GUILD_HEADER_TOOLTIP, GUILD_HEADER_ANIMATED_GUILD_BANNER) || r0; return r0; } function run_99249(a0) { // fn#99249, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13200:6711, offset: 0x021c1aa6, size: 282 bytes, params: 2, frame: 19 const DismissibleContent = (Dismissible_contentModule).DismissibleContent; const Storage = (StorageModule).Storage; let r0 = Storage.get('hideNag') && migrateDismissibleContent(a0, DismissibleContent.NAGBAR_NOTICE_DOWNLOAD) && true; r0 = Storage.get('hideConnectSpotify') && migrateDismissibleContent(a0, DismissibleContent.NAGBAR_NOTICE_CONNECT_SPOTIFY) || r0; r0 = Storage.get('hideConnectPlayStation') && migrateDismissibleContent(a0, DismissibleContent.NAGBAR_NOTICE_CONNECT_PLAYSTATION) || r0; return r0; } function run_99251(a0) { // fn#99251, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13200:7293, offset: 0x021c1c32, size: 282 bytes, params: 2, frame: 19 const DismissibleContent = (Dismissible_contentModule).DismissibleContent; const Storage = (StorageModule).Storage; let r0 = Storage.get('hidePremiumPromo') && migrateDismissibleContent(a0, DismissibleContent.NAGBAR_NOTICE_PREMIUM_PROMO) && true; r0 = Storage.get('hidePremiumTier2TrialEnding') && migrateDismissibleContent(a0, DismissibleContent.NAGBAR_NOTICE_PREMIUM_TIER_TWO_TRIAL_ENDING) || r0; r0 = Storage.get('hidePremiumReactivateNotice') && migrateDismissibleContent(a0, DismissibleContent.NAGBAR_NOTICE_PREMIUM_REACTIVATE) || r0; return r0; } function run_99257(a0) { // fn#99257, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13200:8264, offset: 0x021c1e58, size: 210 bytes, params: 2, frame: 17 var r0; var userContent; var UserContentSettings; var StringValue; const Storage = (StorageModule).Storage; const value2 = Storage.get('PromotionsPersistedStore'); if (value2 == null) { return false; } const lastDismissedOutboundPromotionStartDate = value2._state.lastDismissedOutboundPromotionStartDate; const value3 = lastDismissedOutboundPromotionStartDate != null; if (value3) { userContent = a0.userContent; if (userContent == null) { UserContentSettings = (require(1314) /* metro dependency 1314: preloaded_user_settings */).UserContentSettings; a0.userContent = UserContentSettings.create(); } userContent = a0.userContent; r0 = userContent.lastDismissedOutboundPromotionStartDate == null; } else { r0 = value3; } if (r0) { userContent = a0.userContent; StringValue = (require(1345) /* metro dependency 1345: wrappers */).StringValue; userContent.lastDismissedOutboundPromotionStartDate = StringValue.create({value: lastDismissedOutboundPromotionStartDate}); r0 = true; } return r0; } function run_99259(a0) { // fn#99259, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13200:8676, offset: 0x021c1f2a, size: 211 bytes, params: 2, frame: 18 var r0; var textAndImages; var TextAndImagesSettings; var BoolValue; const PersistedStore = (Flux).PersistedStore; const state = PersistedStore.migrateAndReadStoreState('ExpressionSuggestionsPersistedStore', null).state; if (state == null) { return false; } const expressionSuggestionsEnabled = state.expressionSuggestionsEnabled; const value2 = expressionSuggestionsEnabled != null; if (value2) { textAndImages = a0.textAndImages; if (textAndImages == null) { TextAndImagesSettings = (require(1314) /* metro dependency 1314: preloaded_user_settings */).TextAndImagesSettings; a0.textAndImages = TextAndImagesSettings.create(); } textAndImages = a0.textAndImages; r0 = textAndImages.expressionSuggestionsEnabled == null; } else { r0 = value2; } if (r0) { textAndImages = a0.textAndImages; BoolValue = (require(1345) /* metro dependency 1345: wrappers */).BoolValue; textAndImages.expressionSuggestionsEnabled = BoolValue.create({value: expressionSuggestionsEnabled}); r0 = true; } return r0; } function run_99261(a0) { // fn#99261, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13200:9167, offset: 0x021c202f, size: 150 bytes, params: 2, frame: 19 let migrateHotspotLocationBinding = migrateHotspotLocation; const HotspotLocations = (HotspotModule).HotspotLocations; const GUILD_DELETE_FEEDBACK = HotspotLocations.GUILD_DELETE_FEEDBACK; const DismissibleContent = (Dismissible_contentModule).DismissibleContent; const GUILD_DELETE_FEEDBACK2 = DismissibleContent.GUILD_DELETE_FEEDBACK; let r0 = migrateHotspotLocationBinding(a0, GUILD_DELETE_FEEDBACK, GUILD_DELETE_FEEDBACK2) && true; migrateHotspotLocationBinding = migrateHotspotLocation; const GUILD_LEAVE_FEEDBACK = HotspotLocations.GUILD_LEAVE_FEEDBACK; const GUILD_LEAVE_FEEDBACK2 = DismissibleContent.GUILD_LEAVE_FEEDBACK; r0 = migrateHotspotLocationBinding(a0, GUILD_LEAVE_FEEDBACK, GUILD_LEAVE_FEEDBACK2) || r0; return r0; } function run_99263(a0) { // fn#99263, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13200:9478, offset: 0x021c20c5, size: 111 bytes, params: 2, frame: 15 const Storage = (StorageModule).Storage; const value2 = Storage.get('forumHelperCardStorageKey'); return value2 != null && value2 && migrateDismissibleContent(a0, (require(1365) /* metro dependency 1365: dismissible_content */).DismissibleContent.FORUM_CHANNEL_HELPER_CARD); } function run_99265(a0) { // fn#99265, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13200:9732, offset: 0x021c2166, size: 288 bytes, params: 2, frame: 18 var userContent; var lastReceivedChangelogId; var UserContentSettings; const Storage = (StorageModule).Storage; const value2 = Storage.get('lastChangeLogId'); if (value2 != null) { var moduleValue = require(5065) /* metro dependency 5065: ApplicationCommandUtils */; if (moduleValue.isSnowflake(value2)) { userContent = a0.userContent; if (userContent == null) { UserContentSettings = (require(1314) /* metro dependency 1314: preloaded_user_settings */).UserContentSettings; a0.userContent = UserContentSettings.create(); a0.userContent.lastReceivedChangelogId = value2; return true; } userContent = a0.userContent; if (userContent == null) { a0.userContent.lastReceivedChangelogId = value2; return true; } userContent = a0.userContent; lastReceivedChangelogId = userContent.lastReceivedChangelogId; if (lastReceivedChangelogId == null) { a0.userContent.lastReceivedChangelogId = value2; return true; } userContent = a0.userContent; lastReceivedChangelogId = userContent.lastReceivedChangelogId; if (lastReceivedChangelogId === '0') { a0.userContent.lastReceivedChangelogId = value2; return true; } Storage.remove('lastChangeLogId'); return false; } Storage.remove('lastChangeLogId'); } return false; } } global.__d(_fun99226, 13010, [1379, 661, 11877, 1314, 1364, 6824, 587, 1350, 566, 1345, 1365, 5065, 2]) /* metro module 13010, dependencies: [1379, 661, 11877, 1314, 1364, 6824, 587, 1350, 566, 1345, 1365, 5065, 2] */;