feat(desktop): raise ringtone cap to 8 MB

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
byGalax
2026-04-22 19:17:48 +02:00
parent 5aa39b40ff
commit a38e2f96c0
4 changed files with 5 additions and 5 deletions
@@ -82,7 +82,7 @@ export function RingtoneSettings({ disabled = false }: Props) {
if (code === 'ringtone_too_large') { if (code === 'ringtone_too_large') {
setError( setError(
t('app:settings.ringtone_error_too_large', { t('app:settings.ringtone_error_too_large', {
defaultValue: 'Datei zu groß (max 2 MB).', defaultValue: 'Datei zu groß (max {{max}} MB).',
max: MAX_RINGTONE_BYTES / BYTES_PER_MB, max: MAX_RINGTONE_BYTES / BYTES_PER_MB,
}), }),
); );
@@ -236,7 +236,7 @@ export function RingtoneSettings({ disabled = false }: Props) {
<p className="text-[11px] text-fg-muted"> <p className="text-[11px] text-fg-muted">
{t('app:settings.ringtone_hint', { {t('app:settings.ringtone_hint', {
defaultValue: defaultValue:
'MP3, WAV, OGG oder M4A bis 2 MB. Nur für eingehende Anrufe — ausgehend bleibt der Standard.', 'MP3, WAV, OGG oder M4A bis 8 MB. Nur für eingehende Anrufe — ausgehend bleibt der Standard.',
})} })}
</p> </p>
</div> </div>
+1 -1
View File
@@ -16,7 +16,7 @@ export interface StoredRingtone {
updatedAt: number; updatedAt: number;
} }
export const MAX_RINGTONE_BYTES = 2 * 1024 * 1024; // 2 MB cap export const MAX_RINGTONE_BYTES = 8 * 1024 * 1024; // 8 MB cap
export const SUPPORTED_RINGTONE_MIMES = [ export const SUPPORTED_RINGTONE_MIMES = [
'audio/mpeg', 'audio/mpeg',
+1 -1
View File
@@ -205,7 +205,7 @@
"ringtone_preview": "Vorhören", "ringtone_preview": "Vorhören",
"ringtone_stop": "Stop", "ringtone_stop": "Stop",
"ringtone_reset": "Zurücksetzen", "ringtone_reset": "Zurücksetzen",
"ringtone_hint": "MP3, WAV, OGG oder M4A bis 2 MB. Nur für eingehende Anrufe — ausgehend bleibt der Standard.", "ringtone_hint": "MP3, WAV, OGG oder M4A bis 8 MB. Nur für eingehende Anrufe — ausgehend bleibt der Standard.",
"ringtone_error_too_large": "Datei zu groß (max {{max}} MB).", "ringtone_error_too_large": "Datei zu groß (max {{max}} MB).",
"ringtone_error_not_audio": "Nur Audio-Dateien werden unterstützt.", "ringtone_error_not_audio": "Nur Audio-Dateien werden unterstützt.",
"ringtone_error_generic": "Ringtone konnte nicht gespeichert werden.", "ringtone_error_generic": "Ringtone konnte nicht gespeichert werden.",
+1 -1
View File
@@ -205,7 +205,7 @@
"ringtone_preview": "Preview", "ringtone_preview": "Preview",
"ringtone_stop": "Stop", "ringtone_stop": "Stop",
"ringtone_reset": "Reset", "ringtone_reset": "Reset",
"ringtone_hint": "MP3, WAV, OGG or M4A up to 2 MB. Incoming calls only — outgoing keeps the default.", "ringtone_hint": "MP3, WAV, OGG or M4A up to 8 MB. Incoming calls only — outgoing keeps the default.",
"ringtone_error_too_large": "File too large (max {{max}} MB).", "ringtone_error_too_large": "File too large (max {{max}} MB).",
"ringtone_error_not_audio": "Only audio files are supported.", "ringtone_error_not_audio": "Only audio files are supported.",
"ringtone_error_generic": "Could not save the ringtone.", "ringtone_error_generic": "Could not save the ringtone.",