[16137] Disable text description in lightbox for now (#16169)

This commit is contained in:
Ibrahem Khalil 2023-06-12 11:14:22 +03:00 committed by GitHub
parent 78d6db5bf0
commit a1d9f45f2f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 2 deletions

View File

@ -331,3 +331,5 @@
(def ^:const auth-method-biometric "biometric")
(def ^:const auth-method-biometric-prepare "biometric-prepare")
(def ^:const auth-method-none "none")
(def ^:const image-description-in-lightbox? false)

View File

@ -6,7 +6,8 @@
[status-im2.contexts.chat.lightbox.style :as style]
[utils.re-frame :as rf]
[status-im2.contexts.chat.lightbox.animations :as anim]
[status-im2.contexts.chat.lightbox.constants :as c]))
[status-im2.contexts.chat.lightbox.constants :as c]
[status-im2.constants :as constants]))
(defn get-small-item-layout
[_ index]
@ -56,7 +57,8 @@
:start {:x 0 :y 1}
:end {:x 0 :y 0}
:style (style/gradient-container insets animations derived)}
[rn/text {:style style/text-style} text]
(when constants/image-description-in-lightbox?
[rn/text {:style style/text-style} text])
[rn/flat-list
{:ref #(reset! (:small-list-ref props) %)
:key-fn :message-id