Various improvements

This commit is contained in:
Ilya Laktyushin
2023-11-22 03:24:33 +04:00
parent 31eb1081df
commit 90f09a13e4
134 changed files with 8488 additions and 3171 deletions

View File

@@ -51,6 +51,7 @@ public final class ChatMessageItemAssociatedData: Equatable {
public let translateToLanguage: String?
public let maxReadStoryId: Int32?
public let recommendedChannels: RecommendedChannels?
public let audioTranscriptionTrial: AudioTranscription.TrialState
public init(
automaticDownloadPeerType: MediaAutoDownloadPeerType,
@@ -75,7 +76,8 @@ public final class ChatMessageItemAssociatedData: Equatable {
hasBots: Bool = false,
translateToLanguage: String? = nil,
maxReadStoryId: Int32? = nil,
recommendedChannels: RecommendedChannels? = nil
recommendedChannels: RecommendedChannels? = nil,
audioTranscriptionTrial: AudioTranscription.TrialState = .defaultValue
) {
self.automaticDownloadPeerType = automaticDownloadPeerType
self.automaticDownloadPeerId = automaticDownloadPeerId
@@ -100,6 +102,7 @@ public final class ChatMessageItemAssociatedData: Equatable {
self.translateToLanguage = translateToLanguage
self.maxReadStoryId = maxReadStoryId
self.recommendedChannels = recommendedChannels
self.audioTranscriptionTrial = audioTranscriptionTrial
}
public static func == (lhs: ChatMessageItemAssociatedData, rhs: ChatMessageItemAssociatedData) -> Bool {
@@ -169,6 +172,9 @@ public final class ChatMessageItemAssociatedData: Equatable {
if lhs.recommendedChannels != rhs.recommendedChannels {
return false
}
if lhs.audioTranscriptionTrial != rhs.audioTranscriptionTrial {
return false
}
return true
}
}