42 lines
3.0 KiB
TypeScript
42 lines
3.0 KiB
TypeScript
/* Metro module 12372; source: modules/read_states/trackAckMessages.tsx; dependencies: [1379, 5214, 1867, 4864, 661, 4863, 2] */
|
|
import ChannelStore from '../../stores/ChannelStore.tsx'; /* Metro dependency 1379 */
|
|
import GuildStore from '../../stores/GuildStore.tsx'; /* Metro dependency 1867 */
|
|
import UserGuildSettingsStore from '../../stores/UserGuildSettingsStore.tsx'; /* Metro dependency 4864 */
|
|
import GuildReadStateStore from '../../stores/GuildReadStateStore.tsx'; /* Metro dependency 5214 */
|
|
import * as FileImportTrackerModule from '../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
|
|
import * as ConstantsModule from '../../Constants.tsx'; /* Metro dependency 661 */
|
|
import * as AppAnalyticsUtilsModule from '../app_analytics/AppAnalyticsUtils.tsx'; /* Metro dependency 4863 */
|
|
|
|
function _fun94314(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#94314, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12558:6, offset: 0x021137cc, size: 184 bytes, params: 8, frame: 19
|
|
const env0_0 = require;
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
(FileImportTrackerModule).fileFinishedImporting('modules/read_states/trackAckMessages.tsx');
|
|
exports.default = trackAckMessages;
|
|
function trackAckMessages(a0, a1) { // fn#94315, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12558:245, offset: 0x02113884, size: 144 bytes, params: 3, frame: 18
|
|
const channel = ChannelStore.getChannel(a0);
|
|
const value3 = undefined;
|
|
const trackWithMetadata = AppAnalyticsUtilsModule.trackWithMetadata;
|
|
const ACK_MESSAGES = AnalyticEvents.ACK_MESSAGES;
|
|
const object = {channel_id: a0};
|
|
object.guild_id = channel == null ? value3 : channel.getGuildId();
|
|
object.location = a1;
|
|
object.guild_unread_statuses = GuildStore.getGuildsArray().map(_fun94316);
|
|
Reflect.apply(trackWithMetadata, AppAnalyticsUtilsModule, [ACK_MESSAGES, object]);
|
|
return value3;
|
|
function _fun94316(a0) { // fn#94316, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12558:449, offset: 0x02113914, size: 117 bytes, params: 2, frame: 24
|
|
const value = environment.__proto__;
|
|
const guildReadStateStoreBinding = GuildReadStateStore;
|
|
const hasUnread2 = guildReadStateStoreBinding.hasUnread(a0.id);
|
|
const mentionCount = guildReadStateStoreBinding.getMentionCount(a0.id);
|
|
const userGuildSettingsStoreBinding = UserGuildSettingsStore;
|
|
return '' + a0.id + ',' + hasUnread2 + ',' + mentionCount + ',' + userGuildSettingsStoreBinding.isMuted(a0.id) + ',' + userGuildSettingsStoreBinding.resolveGuildUnreadSetting(a0);
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
global.__d(_fun94314, 12372, [1379, 5214, 1867, 4864, 661, 4863,
|
|
2]) /* metro module 12372, dependencies: [1379, 5214, 1867, 4864, 661, 4863, 2] */;
|