2026-09-04 17:41:35 +00:00
|
|
|
// Module ID: 10079
|
|
|
|
|
// Function ID: 10080
|
2026-07-20 16:05:17 +00:00
|
|
|
// Name: resetGuildUnreadFlags
|
2026-09-04 17:41:35 +00:00
|
|
|
// Dependencies: [682, 1399, 2]
|
2026-07-29 08:29:29 +00:00
|
|
|
// Exports: resetChannelUnreadFlags, resetGuildUnreadFlags, withChannelUnreadFlags, withGuildUnreadFlags
|
2026-07-20 16:05:17 +00:00
|
|
|
|
2026-09-04 17:41:35 +00:00
|
|
|
// Module 10079 (resetGuildUnreadFlags)
|
2026-08-24 06:08:38 +00:00
|
|
|
import set from "set" /* 2 */;
|
2026-09-04 17:41:35 +00:00
|
|
|
import hasFlagAll from "hasFlag" /* 1399 */;
|
2026-09-02 09:53:35 +00:00
|
|
|
import MAX_FAVORITES from "MAX_FAVORITES" /* 682 */;
|
2026-07-23 10:11:24 +00:00
|
|
|
|
2026-07-29 08:29:29 +00:00
|
|
|
({ GuildNotificationSettingsFlags: obj1, ChannelNotificationSettingsFlags: c3 } = MAX_FAVORITES);
|
2026-08-24 06:08:38 +00:00
|
|
|
const result = 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-24 06:08:38 +00:00
|
|
|
return hasFlagAll.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-24 06:08:38 +00:00
|
|
|
const obj = hasFlagAll;
|
|
|
|
|
return obj.addFlag(hasFlagAll.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-24 06:08:38 +00:00
|
|
|
return hasFlagAll.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-24 06:08:38 +00:00
|
|
|
const obj = hasFlagAll;
|
|
|
|
|
return obj.addFlag(hasFlagAll.removeFlags(channelIdFlags, constants2.UNREADS_ALL_MESSAGES, constants2.UNREADS_ONLY_MENTIONS), UNREADS_ONLY_MENTIONS);
|
2026-07-20 16:05:17 +00:00
|
|
|
};
|