decord/source/modules/notifications/settings/utils/notificationSettingsFlagUtils.tsx

29 lines
1.5 KiB
TypeScript
Raw Normal View History

2026-08-15 05:55:55 +00:00
// Module ID: 10091
// Function ID: 10092
2026-07-20 16:05:17 +00:00
// Name: resetGuildUnreadFlags
2026-08-11 06:20:06 +00:00
// Dependencies: [685, 1403, 2]
2026-07-29 08:29:29 +00:00
// Exports: resetChannelUnreadFlags, resetGuildUnreadFlags, withChannelUnreadFlags, withGuildUnreadFlags
2026-07-20 16:05:17 +00:00
2026-08-15 05:55:55 +00:00
// Module 10091 (resetGuildUnreadFlags)
2026-07-23 10:11:24 +00:00
import MAX_FAVORITES from "MAX_FAVORITES";
2026-07-29 08:29:29 +00:00
let c3;
let obj1;
({ GuildNotificationSettingsFlags: obj1, ChannelNotificationSettingsFlags: c3 } = MAX_FAVORITES);
2026-07-23 10:11:24 +00:00
const result = require("set").fileFinishedImporting("modules/notifications/settings/utils/notificationSettingsFlagUtils.tsx");
2026-07-20 16:05:17 +00:00
2026-07-29 08:29:29 +00:00
export const resetGuildUnreadFlags = function resetGuildUnreadFlags(setting) {
2026-08-11 06:20:06 +00:00
return importAll(1403).removeFlags(setting, constants.UNREADS_ALL_MESSAGES, constants.UNREADS_ONLY_MENTIONS);
2026-07-29 08:29:29 +00:00
};
2026-07-20 16:05:17 +00:00
export const withGuildUnreadFlags = function withGuildUnreadFlags(guildFlags, UNREADS_ONLY_MENTIONS) {
2026-08-11 06:20:06 +00:00
const obj = importAll(1403);
return obj.addFlag(importAll(1403).removeFlags(guildFlags, constants.UNREADS_ALL_MESSAGES, constants.UNREADS_ONLY_MENTIONS), UNREADS_ONLY_MENTIONS);
2026-07-29 08:29:29 +00:00
};
export const resetChannelUnreadFlags = function resetChannelUnreadFlags(channelIdFlags) {
2026-08-11 06:20:06 +00:00
return importAll(1403).removeFlags(channelIdFlags, constants2.UNREADS_ALL_MESSAGES, constants2.UNREADS_ONLY_MENTIONS);
2026-07-20 16:05:17 +00:00
};
export const withChannelUnreadFlags = function withChannelUnreadFlags(channelIdFlags, UNREADS_ONLY_MENTIONS) {
2026-08-11 06:20:06 +00:00
const obj = importAll(1403);
return obj.addFlag(importAll(1403).removeFlags(channelIdFlags, constants2.UNREADS_ALL_MESSAGES, constants2.UNREADS_ONLY_MENTIONS), UNREADS_ONLY_MENTIONS);
2026-07-20 16:05:17 +00:00
};