Changes to not preview images when CanPreview is false.

This commit is contained in:
Vitor Pamplona
2023-06-29 14:19:35 -04:00
parent 171f763908
commit 98bca48359

View File

@@ -296,8 +296,8 @@ private fun RenderWordWithoutPreview(
when (type) {
// Don't preview Images
WordType.IMAGE -> UrlPreview(word, wordSpace)
WordType.LINK -> UrlPreview(word, wordSpace)
WordType.IMAGE -> ClickableUrl(wordSpace, word)
WordType.LINK -> ClickableUrl(wordSpace, word)
WordType.EMOJI -> RenderCustomEmoji(word, state)
// Don't offer to pay invoices
WordType.INVOICE -> NormalWord(wordSpace)