decord/source/modules/notifications/settings/utils/notificationSettingsFlagUtils.tsx
2026-08-13 07:00:46 +00:00

28 lines
1.5 KiB
TypeScript

// Module ID: 9876
// Function ID: 9877
// Name: resetGuildUnreadFlags
// Dependencies: [685, 1403, 2]
// Exports: resetChannelUnreadFlags, resetGuildUnreadFlags, withChannelUnreadFlags, withGuildUnreadFlags
// Module 9876 (resetGuildUnreadFlags)
import MAX_FAVORITES from "MAX_FAVORITES";
let c3;
let obj1;
({ GuildNotificationSettingsFlags: obj1, ChannelNotificationSettingsFlags: c3 } = MAX_FAVORITES);
const result = require("set").fileFinishedImporting("modules/notifications/settings/utils/notificationSettingsFlagUtils.tsx");
export const resetGuildUnreadFlags = function resetGuildUnreadFlags(setting) {
return importAll(1403).removeFlags(setting, constants.UNREADS_ALL_MESSAGES, constants.UNREADS_ONLY_MENTIONS);
};
export const withGuildUnreadFlags = function withGuildUnreadFlags(guildFlags, UNREADS_ONLY_MENTIONS) {
const obj = importAll(1403);
return obj.addFlag(importAll(1403).removeFlags(guildFlags, constants.UNREADS_ALL_MESSAGES, constants.UNREADS_ONLY_MENTIONS), UNREADS_ONLY_MENTIONS);
};
export const resetChannelUnreadFlags = function resetChannelUnreadFlags(channelIdFlags) {
return importAll(1403).removeFlags(channelIdFlags, constants2.UNREADS_ALL_MESSAGES, constants2.UNREADS_ONLY_MENTIONS);
};
export const withChannelUnreadFlags = function withChannelUnreadFlags(channelIdFlags, UNREADS_ONLY_MENTIONS) {
const obj = importAll(1403);
return obj.addFlag(importAll(1403).removeFlags(channelIdFlags, constants2.UNREADS_ALL_MESSAGES, constants2.UNREADS_ONLY_MENTIONS), UNREADS_ONLY_MENTIONS);
};