Notification improvements

This commit is contained in:
Ali
2022-04-03 23:23:15 +04:00
parent 91690c62a0
commit ac93545965
15 changed files with 242 additions and 186 deletions

View File

@@ -358,11 +358,13 @@ private func notificationsExceptionEntries(presentationData: PresentationData, n
}
if !muted {
switch value.settings.messageSound {
case .default:
break
default:
let soundName = localizedPeerNotificationSoundString(strings: presentationData.strings, notificationSoundList: notificationSoundList, sound: value.settings.messageSound)
title += (title.isEmpty ? presentationData.strings.Notification_Exceptions_Sound(soundName).string : ", \(presentationData.strings.Notification_Exceptions_Sound(soundName).string)")
case .default:
break
default:
if !title.isEmpty {
title.append(", ")
}
title.append(presentationData.strings.Notification_Exceptions_SoundCustom)
}
switch value.settings.displayPreviews {
case .default: