Don't display "Add Unknown as contact to send a Message" if chat is not loaded (#17704)
This commit is contained in:
parent
07dd42a7d3
commit
078976806a
|
@ -82,12 +82,13 @@
|
|||
:online? online?
|
||||
:photo-path photo-path}]
|
||||
|
||||
(when (seq chat)
|
||||
(if able-to-send-message?
|
||||
[:f> composer.view/composer
|
||||
{:insets insets
|
||||
:scroll-to-bottom-fn list.view/scroll-to-bottom
|
||||
:show-floating-scroll-down-button? show-floating-scroll-down-button?}]
|
||||
[contact-requests.bottom-drawer/view chat-id contact-request-state group-chat])]))
|
||||
[contact-requests.bottom-drawer/view chat-id contact-request-state group-chat]))]))
|
||||
|
||||
(defn chat
|
||||
[]
|
||||
|
|
|
@ -14,6 +14,7 @@
|
|||
[status-im2.contexts.communities.actions.community-options.view :as options]
|
||||
[status-im2.contexts.communities.overview.style :as style]
|
||||
[status-im2.contexts.communities.overview.utils :as utils]
|
||||
[utils.debounce :as debounce]
|
||||
[utils.i18n :as i18n]
|
||||
[utils.re-frame :as rf]))
|
||||
|
||||
|
@ -210,7 +211,7 @@
|
|||
(when (and (not locked?) id)
|
||||
{:on-press (fn []
|
||||
(rf/dispatch [:dismiss-keyboard])
|
||||
(rf/dispatch [:chat/navigate-to-chat (str community-id id)]))
|
||||
(debounce/dispatch-and-chill [:chat/navigate-to-chat (str community-id id)] 1000))
|
||||
:on-long-press #(rf/dispatch
|
||||
[:show-bottom-sheet
|
||||
{:content (fn []
|
||||
|
|
Loading…
Reference in New Issue