Disable audio messages (#16270)

* Remove audio messages

* Fix

* Fix
This commit is contained in:
Alexander 2023-06-16 11:47:24 +02:00 committed by GitHub
parent a10c762aa6
commit d79086bb4c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 12 additions and 1 deletions

View File

@ -66,6 +66,15 @@
z-index (reagent/atom (if (and (empty? @text-value) (not images?)) 0 1))]
[:f> f-send-button props state animations window-height images? btn-opacity z-index]))
(defn disabled-audio-button
[]
[quo/button
{:on-press #(js/alert "to be implemented")
:icon true
:type :outline
:size 32}
:i/audio])
(defn audio-button
[{:keys [record-reset-fn input-ref]}
{:keys [record-permission? recording? gesture-enabled? focused?]}
@ -202,4 +211,6 @@
[format-button]]
[:f> send-button props state animations window-height images]
(when (and (not edit) (not images))
[audio-button props state animations])])
;; TODO(alwx): needs to be replaced with an `audio-button` later.
;; See https://github.com/status-im/status-mobile/issues/16084 for more details.
[disabled-audio-button])])