Compare commits

...
Author SHA1 Message Date
Volodymyr Kozieiev 4bff6ea872 Do not show keyboard when audio preview in place 2023-05-31 15:42:19 +01:00
2 changed files with 4 additions and 2 deletions
@@ -88,7 +88,8 @@
(rf/dispatch [:chat.ui/set-recording false]))
:on-reviewing-audio (fn [file]
(rf/dispatch [:chat.ui/set-recording false])
(rf/dispatch [:chat.ui/set-input-audio file]))
(rf/dispatch [:chat.ui/set-input-audio file])
(rf/dispatch [:dismiss-keyboard]))
:on-send (fn [{:keys [file-path duration]}]
(rf/dispatch [:chat.ui/set-recording false])
(reset! recording? false)
@@ -81,7 +81,8 @@
[edit/view state]
[reanimated/touchable-opacity
{:active-opacity 1
:on-press (when @(:input-ref props) #(.focus ^js @(:input-ref props)))
:on-press (when (and @(:input-ref props) (not (:audio subs)))
#(.focus ^js @(:input-ref props)))
:style (style/input-container (:height animations) max-height)
:accessibility-label :message-input-container}
[rn/selectable-text-input