mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-24 07:05:35 +00:00
Bump min iOS version to 11.0
This commit is contained in:
@@ -464,16 +464,10 @@ public final class SharedNotificationManager {
|
||||
|
||||
} else {
|
||||
let notification = UILocalNotification()
|
||||
if #available(iOS 8.2, *) {
|
||||
notification.alertTitle = title
|
||||
notification.alertBody = body
|
||||
} else {
|
||||
if let title = title {
|
||||
notification.alertBody = "\(title): \(body)"
|
||||
} else {
|
||||
notification.alertBody = body
|
||||
}
|
||||
}
|
||||
|
||||
notification.alertTitle = title
|
||||
notification.alertBody = body
|
||||
|
||||
notification.category = "incomingCall"
|
||||
notification.userInfo = ["callId": String(describing: notificationCall.internalId)]
|
||||
notification.soundName = "0.m4a"
|
||||
|
||||
Reference in New Issue
Block a user