Skip to content

Commit

Permalink
Disable image description in lightbox (#16405)
Browse files Browse the repository at this point in the history
  • Loading branch information
ibrkhalil authored Jun 27, 2023
1 parent 4c8671c commit 79151ee
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/status_im2/contexts/chat/lightbox/bottom_view.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,11 @@
:start {:x 0 :y 1}
:end {:x 0 :y 0}
:style (style/gradient-container insets animations derived)}
[message-view/render-parsed-text
{:content content
:chat-id chat-id
:style-override style/text-style}]
(when c/image-description-in-lightbox?
[message-view/render-parsed-text
{:content content
:chat-id chat-id
:style-override style/text-style}])
[rn/flat-list
{:ref #(reset! (:small-list-ref props) %)
:key-fn :message-id
Expand Down
2 changes: 2 additions & 0 deletions src/status_im2/contexts/chat/lightbox/constants.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,5 @@
(def ^:const separator-width 16)

(def ^:const drag-threshold 100)

(def ^:const image-description-in-lightbox? false)

0 comments on commit 79151ee

Please sign in to comment.