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

29 lines
1.5 KiB
TypeScript
Raw Normal View History

2026-07-30 10:14:41 +00:00
// Module ID: 10309
// Function ID: 10310
2026-07-20 16:05:17 +00:00
// Name: resetGuildUnreadFlags
2026-07-29 08:29:29 +00:00
// Dependencies: [685, 1384, 2]
// Exports: resetChannelUnreadFlags, resetGuildUnreadFlags, withChannelUnreadFlags, withGuildUnreadFlags
2026-07-20 16:05:17 +00:00
2026-07-30 10:14:41 +00:00
// Module 10309 (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) {
return importAll(1384).removeFlags(setting, constants.UNREADS_ALL_MESSAGES, constants.UNREADS_ONLY_MENTIONS);
};
2026-07-20 16:05:17 +00:00
export const withGuildUnreadFlags = function withGuildUnreadFlags(guildFlags, UNREADS_ONLY_MENTIONS) {
2026-07-29 08:29:29 +00:00
const obj = importAll(1384);
return obj.addFlag(importAll(1384).removeFlags(guildFlags, constants.UNREADS_ALL_MESSAGES, constants.UNREADS_ONLY_MENTIONS), UNREADS_ONLY_MENTIONS);
};
export const resetChannelUnreadFlags = function resetChannelUnreadFlags(channelIdFlags) {
return importAll(1384).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-07-29 08:29:29 +00:00
const obj = importAll(1384);
return obj.addFlag(importAll(1384).removeFlags(channelIdFlags, constants2.UNREADS_ALL_MESSAGES, constants2.UNREADS_ONLY_MENTIONS), UNREADS_ONLY_MENTIONS);
2026-07-20 16:05:17 +00:00
};