add friends of friends, apply to all images

This commit is contained in:
radixrat
2022-12-24 09:56:23 -05:00
parent 63dd39c7e4
commit 1a2e9464af
13 changed files with 50 additions and 29 deletions

View File

@@ -121,7 +121,8 @@ struct TranslateView: View {
if let translated = translated_note {
// Render translated note.
let blocks = event.get_blocks(content: translated)
translated_artifacts = render_blocks(blocks: blocks, profiles: damus_state.profiles, privkey: damus_state.keypair.privkey)
let show_images = should_show_images(contacts: damus_state.contacts, ev: event, our_pubkey: damus_state.pubkey)
translated_artifacts = render_blocks(blocks: blocks, profiles: damus_state.profiles, privkey: damus_state.keypair.privkey, show_images: show_images)
}
checkingTranslationStatus = false