mirror of
https://github.com/vitorpamplona/amethyst.git
synced 2025-10-03 23:02:35 +02:00
Changes to not preview images when CanPreview is false.
This commit is contained in:
@@ -296,8 +296,8 @@ private fun RenderWordWithoutPreview(
|
|||||||
|
|
||||||
when (type) {
|
when (type) {
|
||||||
// Don't preview Images
|
// Don't preview Images
|
||||||
WordType.IMAGE -> UrlPreview(word, wordSpace)
|
WordType.IMAGE -> ClickableUrl(wordSpace, word)
|
||||||
WordType.LINK -> UrlPreview(word, wordSpace)
|
WordType.LINK -> ClickableUrl(wordSpace, word)
|
||||||
WordType.EMOJI -> RenderCustomEmoji(word, state)
|
WordType.EMOJI -> RenderCustomEmoji(word, state)
|
||||||
// Don't offer to pay invoices
|
// Don't offer to pay invoices
|
||||||
WordType.INVOICE -> NormalWord(wordSpace)
|
WordType.INVOICE -> NormalWord(wordSpace)
|
||||||
|
Reference in New Issue
Block a user