Skip to content

Commit

Permalink
[DemoApp] Do not translate deleted messages (#3088)
Browse files Browse the repository at this point in the history
  • Loading branch information
testableapple authored Mar 14, 2024
1 parent 88e1c7a commit 5cb5194
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ final class DemoChatMessageContentView: ChatMessageContentView {
/// If automatic translation is added, do not show manual translation
/// (Demo App only feature to test LLC manual translation)
if layoutOptions?.contains(.translation) == false,
content?.isDeleted == false,
let translations = content?.translations,
let turkishTranslation = translations[.turkish] {
textView?.text = turkishTranslation
Expand Down

0 comments on commit 5cb5194

Please sign in to comment.