Fact check fixes

This commit is contained in:
Ilya Laktyushin
2024-05-20 20:00:50 +04:00
parent 21898f4207
commit 43faf7619d
16 changed files with 83 additions and 51 deletions

View File

@@ -1715,15 +1715,15 @@ func contextMenuForChatPresentationInterfaceState(chatPresentationInterfaceState
let title: String
if hasFactCheck {
title = chatPresentationInterfaceState.strings.Conversation_ContextMenuAddFactCheck
} else {
title = chatPresentationInterfaceState.strings.Conversation_ContextMenuEditFactCheck
} else {
title = chatPresentationInterfaceState.strings.Conversation_ContextMenuAddFactCheck
}
actions.append(.action(ContextMenuActionItem(text: title, icon: { theme in
return generateTintedImage(image: UIImage(bundleImageName: "Chat/Context Menu/FactCheck"), color: theme.actionSheet.primaryTextColor)
}, action: { c, f in
f(.dismissWithoutContent)
c?.dismiss(completion: {
})
controllerInteraction.editMessageFactCheck(messages[0].id)
})))
}