2026-07-27 11:26:19 +00:00
|
|
|
// Module ID: 10268
|
|
|
|
|
// Function ID: 79385
|
2026-07-20 16:05:17 +00:00
|
|
|
// Name: NotificationSettingsMessageUnreadGuildActionSheet
|
2026-07-27 11:26:19 +00:00
|
|
|
// Dependencies: [31, 4326, 653, 4327, 662, 33, 10257, 10269, 1212, 5079, 10252, 5074, 2]
|
2026-07-20 16:05:17 +00:00
|
|
|
// Exports: default
|
|
|
|
|
|
2026-07-27 11:26:19 +00:00
|
|
|
// Module 10268 (NotificationSettingsMessageUnreadGuildActionSheet)
|
2026-07-23 10:11:24 +00:00
|
|
|
import "result";
|
|
|
|
|
import _isNativeReflectConstruct from "_isNativeReflectConstruct";
|
|
|
|
|
import { UserNotificationSettings } from "ME";
|
|
|
|
|
import { UnreadSetting } from "ReadStateTypes";
|
|
|
|
|
import { GuildNotificationSettingsFlags as closure_6 } from "MAX_FAVORITES";
|
|
|
|
|
import { jsx } from "jsxProd";
|
|
|
|
|
|
|
|
|
|
const require = arg1;
|
|
|
|
|
let result = require("ME").fileFinishedImporting("modules/notifications/settings/native/NotificationSettingsMessageUnreadGuildActionSheet.tsx");
|
2026-07-20 16:05:17 +00:00
|
|
|
|
|
|
|
|
export default function NotificationSettingsMessageUnreadGuildActionSheet(guildId) {
|
|
|
|
|
let notification;
|
|
|
|
|
let unread;
|
2026-07-23 10:11:24 +00:00
|
|
|
const _require = guildId;
|
2026-07-27 11:26:19 +00:00
|
|
|
let obj = _require(10257);
|
2026-07-20 16:05:17 +00:00
|
|
|
const guildPresetSettings = obj.useGuildPresetSettings(guildId.guildId);
|
|
|
|
|
({ unread, notification } = guildPresetSettings);
|
|
|
|
|
obj = {};
|
|
|
|
|
let stringResult;
|
|
|
|
|
if (notification === UserNotificationSettings.ALL_MESSAGES) {
|
2026-07-23 10:11:24 +00:00
|
|
|
const intl = _require(1212).intl;
|
|
|
|
|
stringResult = intl.string(_require(1212).t.eP8yWU);
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
|
|
|
|
obj.disabledMentionOnlyWithReason = stringResult;
|
|
|
|
|
obj.value = unread;
|
|
|
|
|
obj.onChange = function onChange(ONLY_MENTIONS) {
|
2026-07-23 10:11:24 +00:00
|
|
|
const guildFlags = outer1_3.getGuildFlags(guildId.guildId);
|
|
|
|
|
let obj = outer1_1(outer1_2[9]);
|
2026-07-20 16:05:17 +00:00
|
|
|
obj = {};
|
2026-07-23 10:11:24 +00:00
|
|
|
if (ONLY_MENTIONS === outer1_5.ALL_MESSAGES) {
|
|
|
|
|
let UNREADS_ONLY_MENTIONS = outer1_6.UNREADS_ALL_MESSAGES;
|
2026-07-20 16:05:17 +00:00
|
|
|
} else {
|
2026-07-23 10:11:24 +00:00
|
|
|
UNREADS_ONLY_MENTIONS = outer1_6.UNREADS_ONLY_MENTIONS;
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
2026-07-23 10:11:24 +00:00
|
|
|
obj.flags = guildId(outer1_2[10]).withGuildUnreadFlags(guildFlags, UNREADS_ONLY_MENTIONS);
|
|
|
|
|
const NotificationLabel = guildId(outer1_2[11]).NotificationLabel;
|
|
|
|
|
const result = obj.updateGuildNotificationSettings(guildId.guildId, obj, NotificationLabel.unreads(ONLY_MENTIONS));
|
2026-07-20 16:05:17 +00:00
|
|
|
};
|
2026-07-27 11:26:19 +00:00
|
|
|
return jsx(importDefault(10269), {});
|
2026-07-20 16:05:17 +00:00
|
|
|
};
|