mirror of
https://github.com/ichmagmaus111/ghostgram.git
synced 2026-07-10 09:58:35 +02:00
Update Ghostgram features
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
import SGAppGroupIdentifier
|
||||
import Foundation
|
||||
import UIKit
|
||||
import CallKit
|
||||
@@ -20,7 +21,7 @@ public final class CallKitIntegration {
|
||||
return false
|
||||
#else
|
||||
if #available(iOSApplicationExtension 10.0, iOS 10.0, *) {
|
||||
return Locale.current.regionCode?.lowercased() != "cn"
|
||||
return Locale.current.regionCode?.lowercased() != "cn" && !(UserDefaults(suiteName: sgAppGroupIdentifier())?.bool(forKey: "legacyNotificationsFix") ?? false)
|
||||
} else {
|
||||
return false
|
||||
}
|
||||
@@ -158,7 +159,8 @@ class CallKitProviderDelegate: NSObject, CXProviderDelegate {
|
||||
}
|
||||
|
||||
private static func providerConfiguration() -> CXProviderConfiguration {
|
||||
let providerConfiguration = CXProviderConfiguration(localizedName: "Telegram")
|
||||
// MARK: Swiftgram
|
||||
let providerConfiguration = CXProviderConfiguration(localizedName: "Swiftgram")
|
||||
|
||||
providerConfiguration.supportsVideo = true
|
||||
providerConfiguration.maximumCallsPerCallGroup = 1
|
||||
|
||||
@@ -3433,6 +3433,7 @@ final class VideoChatScreenComponent: Component {
|
||||
let presentationInterfaceState = ChatPresentationInterfaceState(
|
||||
chatWallpaper: .builtin(WallpaperSettings()),
|
||||
theme: presentationData.theme,
|
||||
preferredGlassType: .default,
|
||||
strings: presentationData.strings,
|
||||
dateTimeFormat: presentationData.dateTimeFormat,
|
||||
nameDisplayOrder: presentationData.nameDisplayOrder,
|
||||
|
||||
Reference in New Issue
Block a user