diff --git a/dev/Common/Audio.js b/dev/Common/Audio.js index 2a34fc6d0..26459af0b 100644 --- a/dev/Common/Audio.js +++ b/dev/Common/Audio.js @@ -116,6 +116,7 @@ export const SMAudio = new class { if ('running' == audioCtx.state && (this.supportedMp3 || this.supportedOgg)) { notificator = notificator || createNewObject(); if (notificator) { +// SettingsGet('NotificationSound').startsWith('custom@') notificator.src = Links.staticLink('sounds/' + SettingsGet('NotificationSound') + (this.supportedMp3 ? '.mp3' : '.ogg')); diff --git a/snappymail/v/0.0.0/app/libraries/RainLoop/Actions.php b/snappymail/v/0.0.0/app/libraries/RainLoop/Actions.php index 2e59379fd..32b45fa84 100644 --- a/snappymail/v/0.0.0/app/libraries/RainLoop/Actions.php +++ b/snappymail/v/0.0.0/app/libraries/RainLoop/Actions.php @@ -822,6 +822,9 @@ class Actions foreach (\glob(APP_VERSION_ROOT_PATH.'static/sounds/*.mp3') as $file) { $aResult['newMailSounds'][] = \basename($file, '.mp3'); } +// foreach (\glob(APP_INDEX_ROOT_PATH.'notifications/*.mp3') as $file) { +// $aResult['newMailSounds'][] = 'custom@'.\basename($file, '.mp3'); +// } } else { if ($oConfig->Get('login', 'allow_languages_on_login', true) && $oConfig->Get('login', 'determine_user_language', true)) {