feat(app): drop the compact attachments media size preference (#1872)

This commit is contained in:
Hampus
2026-08-24 12:35:28 +02:00
committed by GitHub
parent eda29c0e34
commit 844952db51
18 changed files with 62 additions and 383 deletions
+1 -6
View File
@@ -93,19 +93,14 @@ export const MessageFlags = {
SUPPRESS_EMBEDS: 1 << 2,
SUPPRESS_NOTIFICATIONS: 1 << 12,
VOICE_MESSAGE: 1 << 13,
COMPACT_ATTACHMENTS: 1 << 17,
} as const;
export const MessageFlagsDescriptions: Record<keyof typeof MessageFlags, string> = {
SUPPRESS_EMBEDS: 'Do not include embeds when serialising this message',
SUPPRESS_NOTIFICATIONS: 'This message will not trigger push or desktop notifications',
VOICE_MESSAGE: 'This message is a voice message',
COMPACT_ATTACHMENTS: 'Display attachments in a compact format',
};
export const SENDABLE_MESSAGE_FLAGS =
MessageFlags.SUPPRESS_EMBEDS |
MessageFlags.SUPPRESS_NOTIFICATIONS |
MessageFlags.COMPACT_ATTACHMENTS |
MessageFlags.VOICE_MESSAGE;
MessageFlags.SUPPRESS_EMBEDS | MessageFlags.SUPPRESS_NOTIFICATIONS | MessageFlags.VOICE_MESSAGE;
export const MessageAttachmentFlags = {
IS_SPOILER: 1 << 3,
CONTAINS_EXPLICIT_MEDIA: 1 << 4,