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

@@ -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)