Various improvements

This commit is contained in:
Ilya Laktyushin
2024-01-08 17:03:26 +04:00
parent 049c7f9c0c
commit 107a48b53d
45 changed files with 1912 additions and 701 deletions

View File

@@ -53,6 +53,7 @@ public final class ChatMessageItemAssociatedData: Equatable {
public let recommendedChannels: RecommendedChannels?
public let audioTranscriptionTrial: AudioTranscription.TrialState
public let chatThemes: [TelegramTheme]
public let isStandalone: Bool
public init(
automaticDownloadPeerType: MediaAutoDownloadPeerType,
@@ -79,7 +80,8 @@ public final class ChatMessageItemAssociatedData: Equatable {
maxReadStoryId: Int32? = nil,
recommendedChannels: RecommendedChannels? = nil,
audioTranscriptionTrial: AudioTranscription.TrialState = .defaultValue,
chatThemes: [TelegramTheme] = []
chatThemes: [TelegramTheme] = [],
isStandalone: Bool = false
) {
self.automaticDownloadPeerType = automaticDownloadPeerType
self.automaticDownloadPeerId = automaticDownloadPeerId
@@ -106,6 +108,7 @@ public final class ChatMessageItemAssociatedData: Equatable {
self.recommendedChannels = recommendedChannels
self.audioTranscriptionTrial = audioTranscriptionTrial
self.chatThemes = chatThemes
self.isStandalone = isStandalone
}
public static func == (lhs: ChatMessageItemAssociatedData, rhs: ChatMessageItemAssociatedData) -> Bool {
@@ -181,6 +184,9 @@ public final class ChatMessageItemAssociatedData: Equatable {
if lhs.chatThemes != rhs.chatThemes {
return false
}
if lhs.isStandalone != rhs.isStandalone {
return false
}
return true
}
}