Translation fixes

This commit is contained in:
Ilya Laktyushin 2023-01-25 20:41:31 +04:00
parent b2b7bd0ed8
commit 5f9b508102
2 changed files with 2 additions and 2 deletions

View File

@ -6730,7 +6730,7 @@ public final class ChatControllerImpl: TelegramBaseController, ChatController, G
threadData = .single(nil)
}
if peerId.namespace != Namespaces.Peer.SecretChat && self.subject != .scheduledMessages {
if peerId.namespace != Namespaces.Peer.SecretChat && peerId != context.account.peerId && self.subject != .scheduledMessages {
var baseLanguageCode = self.presentationData.strings.baseLanguageCode
if baseLanguageCode.contains("-") {
baseLanguageCode = baseLanguageCode.components(separatedBy: "-").first ?? baseLanguageCode

View File

@ -1119,7 +1119,7 @@ public final class ChatHistoryListNode: ListView, ChatHistoryNode {
)
let translationState: Signal<ChatTranslationState?, NoError>
if let peerId = chatLocation.peerId, peerId.namespace == Namespaces.Peer.CloudChannel {
if let peerId = chatLocation.peerId, peerId.namespace != Namespaces.Peer.SecretChat && peerId != context.account.peerId && subject != .scheduledMessages {
translationState = chatTranslationState(context: context, peerId: peerId)
} else {
translationState = .single(nil)