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:
@@ -82,7 +82,7 @@ export function RingtoneSettings({ disabled = false }: Props) {
|
||||
if (code === 'ringtone_too_large') {
|
||||
setError(
|
||||
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,
|
||||
}),
|
||||
);
|
||||
@@ -236,7 +236,7 @@ export function RingtoneSettings({ disabled = false }: Props) {
|
||||
<p className="text-[11px] text-fg-muted">
|
||||
{t('app:settings.ringtone_hint', {
|
||||
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>
|
||||
</div>
|
||||
|
||||
@@ -16,7 +16,7 @@ export interface StoredRingtone {
|
||||
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 = [
|
||||
'audio/mpeg',
|
||||
|
||||
Reference in New Issue
Block a user