2026-09-02 09:53:35 +00:00
|
|
|
// Module ID: 10275
|
|
|
|
|
// Function ID: 10276
|
2026-07-20 16:05:17 +00:00
|
|
|
// Name: NotificationSettingsMessageUnreadChannelActionSheet
|
2026-09-02 09:53:35 +00:00
|
|
|
// Dependencies: [19, 4701, 673, 4702, 682, 21, 10254, 10274, 1233, 5495, 10255, 5490, 2]
|
2026-07-20 16:05:17 +00:00
|
|
|
// Exports: default
|
|
|
|
|
|
2026-09-02 09:53:35 +00:00
|
|
|
// Module 10275 (NotificationSettingsMessageUnreadChannelActionSheet)
|
2026-08-24 06:08:38 +00:00
|
|
|
import noopAll from "noop" /* 19 */;
|
2026-09-02 09:53:35 +00:00
|
|
|
import NotificationSettingsMessageUnreadActionSheetDefault from "NotificationSettingsMessageUnreadActionSheet" /* 10274 */;
|
2026-09-01 10:26:29 +00:00
|
|
|
import closure_3 from "updateUserGuildSettingsInternal" /* 4701 */;
|
2026-09-02 09:53:35 +00:00
|
|
|
import { UserNotificationSettings } from "ME" /* 673 */;
|
2026-09-01 10:26:29 +00:00
|
|
|
import { UnreadSetting } from "ReadStateTypes" /* 4702 */;
|
2026-09-02 09:53:35 +00:00
|
|
|
import { ChannelNotificationSettingsFlags as closure_6 } from "MAX_FAVORITES" /* 682 */;
|
2026-08-24 06:08:38 +00:00
|
|
|
import { jsx } from "jsxProd" /* 21 */;
|
2026-07-23 10:11:24 +00:00
|
|
|
|
|
|
|
|
const require = arg1;
|
2026-08-24 06:08:38 +00:00
|
|
|
noopAll;
|
|
|
|
|
let result = require("set").fileFinishedImporting("modules/notifications/settings/native/NotificationSettingsMessageUnreadChannelActionSheet.tsx");
|
2026-07-20 16:05:17 +00:00
|
|
|
|
|
|
|
|
export default function NotificationSettingsMessageUnreadChannelActionSheet(channel) {
|
2026-07-23 10:11:24 +00:00
|
|
|
const _require = channel;
|
2026-09-02 09:53:35 +00:00
|
|
|
let obj = _require(10254);
|
2026-07-20 16:05:17 +00:00
|
|
|
const channelPresetSettings = obj.useChannelPresetSettings(channel.channel);
|
|
|
|
|
({ unread, notification } = channelPresetSettings);
|
2026-07-29 08:29:29 +00:00
|
|
|
obj = { value: unread, disabledMentionOnlyWithReason: null, onChange: null };
|
2026-07-20 16:05:17 +00:00
|
|
|
let stringResult;
|
|
|
|
|
if (notification === UserNotificationSettings.ALL_MESSAGES) {
|
2026-09-02 09:53:35 +00:00
|
|
|
const intl = tmp(1233).intl;
|
|
|
|
|
stringResult = intl.string(tmp(1233).t.eP8yWU);
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
2026-07-29 08:29:29 +00:00
|
|
|
obj[1] = stringResult;
|
|
|
|
|
obj[2] = function onChange(ONLY_MENTIONS) {
|
2026-08-24 06:08:38 +00:00
|
|
|
const channelIdFlags = closure_1_3.getChannelIdFlags(channel.channel.guild_id, channel.channel.id);
|
|
|
|
|
let obj = closure_1_1(closure_1_2[9]);
|
|
|
|
|
if (ONLY_MENTIONS === closure_1_5.ALL_MESSAGES) {
|
|
|
|
|
let UNREADS_ONLY_MENTIONS = closure_1_6.UNREADS_ALL_MESSAGES;
|
2026-07-20 16:05:17 +00:00
|
|
|
} else {
|
2026-08-24 06:08:38 +00:00
|
|
|
UNREADS_ONLY_MENTIONS = closure_1_6.UNREADS_ONLY_MENTIONS;
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
2026-08-24 06:08:38 +00:00
|
|
|
obj = { flags: channel(closure_1_2[10]).withChannelUnreadFlags(channelIdFlags, UNREADS_ONLY_MENTIONS) };
|
|
|
|
|
const NotificationLabel = channel(closure_1_2[11]).NotificationLabel;
|
2026-07-23 10:11:24 +00:00
|
|
|
const result = obj.updateChannelOverrideSettings(channel.channel.guild_id, channel.channel.id, obj, NotificationLabel.unreads(ONLY_MENTIONS));
|
2026-07-20 16:05:17 +00:00
|
|
|
};
|
2026-08-24 06:08:38 +00:00
|
|
|
return jsx(NotificationSettingsMessageUnreadActionSheetDefault, { value: unread, disabledMentionOnlyWithReason: null, onChange: null });
|
2026-07-20 16:05:17 +00:00
|
|
|
};
|