mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-24 07:05:35 +00:00
Version 11.5.3
This commit is contained in:
@@ -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 }
|
||||
|
||||
Reference in New Issue
Block a user