Version 11.5.3

This commit is contained in:
Kylmakalle
2024-07-02 19:58:37 +03:00
parent 45fa1b5ddb
commit 7d4b4eaf6c
673 changed files with 34800 additions and 1281 deletions

View File

@@ -31,6 +31,8 @@ public final class ChatMessageItemAssociatedData: Equatable {
}
}
public let translateToLanguageSG: String?
public let translationSettings: TranslationSettings?
public let automaticDownloadPeerType: MediaAutoDownloadPeerType
public let automaticDownloadPeerId: EnginePeer.Id?
public let automaticDownloadNetworkType: MediaAutoDownloadNetworkType
@@ -65,6 +67,8 @@ public final class ChatMessageItemAssociatedData: Equatable {
public let showSensitiveContent: Bool
public init(
translateToLanguageSG: String? = nil,
translationSettings: TranslationSettings? = nil,
automaticDownloadPeerType: MediaAutoDownloadPeerType,
automaticDownloadPeerId: EnginePeer.Id?,
automaticDownloadNetworkType: MediaAutoDownloadNetworkType,
@@ -98,6 +102,8 @@ public final class ChatMessageItemAssociatedData: Equatable {
isInline: Bool = false,
showSensitiveContent: Bool = false
) {
self.translateToLanguageSG = translateToLanguageSG
self.translationSettings = translationSettings
self.automaticDownloadPeerType = automaticDownloadPeerType
self.automaticDownloadPeerId = automaticDownloadPeerId
self.automaticDownloadNetworkType = automaticDownloadNetworkType
@@ -136,6 +142,12 @@ public final class ChatMessageItemAssociatedData: Equatable {
if lhs.automaticDownloadPeerType != rhs.automaticDownloadPeerType {
return false
}
if lhs.translateToLanguageSG != rhs.translateToLanguageSG {
return false
}
if lhs.translationSettings != rhs.translationSettings {
return false
}
if lhs.automaticDownloadPeerId != rhs.automaticDownloadPeerId {
return false
}
@@ -958,6 +970,7 @@ public protocol PeerInfoScreen: ViewController {
var privacySettings: Promise<AccountPrivacySettings?> { get }
func openBirthdaySetup()
func tabBarItemContextAction(sourceView: UIView, gesture: ContextGesture?)
func toggleStorySelection(ids: [Int32], isSelected: Bool)
func togglePaneIsReordering(isReordering: Bool)
func cancelItemSelection()
@@ -1009,6 +1022,7 @@ public protocol ChatControllerCustomNavigationPanelNode: ASDisplayNode {
}
public protocol ChatController: ViewController {
var overlayTitle: String? { get }
var chatLocation: ChatLocation { get }
var canReadHistory: ValuePromise<Bool> { get }
var parentController: ViewController? { get set }