mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-16 11:20:18 +00:00
Translation fixes
This commit is contained in:
parent
b2b7bd0ed8
commit
5f9b508102
@ -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
|
||||
|
||||
@ -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)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user