Home show search when input is focused or has content

Fixes #11017

Signed-off-by: Gheorghe Pinzaru <feross95@gmail.com>
This commit is contained in:
Gheorghe Pinzaru 2020-08-05 17:57:55 +03:00
parent dd67533ecd
commit 0319854e83
No known key found for this signature in database
GPG Key ID: C9A094959935A952
1 changed files with 2 additions and 2 deletions

View File

@ -146,9 +146,9 @@
:keyboard-should-persist-taps :always
:data chats
:render-fn (fn [home-item] [inner-item/home-list-item home-item])
:header (when (or (seq chats) @search-active?)
:header (when (or (seq chats) @search-active? (seq search-filter))
[search-input-wrapper search-filter chats])
:empty-component (when @search-active?
:empty-component (when (or @search-active? (seq search-filter))
[start-suggestion search-filter])
:footer (if (and (not hide-home-tooltip?) (not @search-active?))
[home-tooltip-view]