Show link preview image if thumbnailUrl is not empty
Signed-off-by: andrey <motor4ik@gmail.com>
This commit is contained in:
parent
25a6495d37
commit
d8fb0e866b
|
@ -86,9 +86,10 @@
|
|||
(re-frame/dispatch
|
||||
[:browser.ui/message-link-pressed link]))}
|
||||
[react/view (styles/link-preview-wrapper outgoing timeline)
|
||||
(when-not (string/blank? thumbnailUrl)
|
||||
[react/image {:source {:uri thumbnailUrl}
|
||||
:style (styles/link-preview-image outgoing (select-keys preview-data [:height :width]))
|
||||
:accessibility-label :member-photo}]
|
||||
:accessibility-label :member-photo}])
|
||||
(when-not (is-gif? thumbnailUrl)
|
||||
[:<>
|
||||
[quo/text {:size :small
|
||||
|
|
Loading…
Reference in New Issue