Clear home filter when opening chats
Fixes #11015 Fixes #11013 Signed-off-by: Gheorghe Pinzaru <feross95@gmail.com>
This commit is contained in:
parent
f128c0ceed
commit
62fe9f3d6a
|
@ -119,7 +119,8 @@
|
||||||
:title (or ens-name (utils/get-shortened-address public-key))
|
:title (or ens-name (utils/get-shortened-address public-key))
|
||||||
:subtitle (i18n/label :t/join-new-private-chat)
|
:subtitle (i18n/label :t/join-new-private-chat)
|
||||||
:on-press (fn []
|
:on-press (fn []
|
||||||
(debounce/dispatch-and-chill [:contact.ui/contact-code-submitted false] 3000))}])
|
(debounce/dispatch-and-chill [:contact.ui/contact-code-submitted false] 3000)
|
||||||
|
(re-frame/dispatch [:search/home-filter-changed nil]))}])
|
||||||
(when valid-public?
|
(when valid-public?
|
||||||
[quo/list-item {:theme :accent
|
[quo/list-item {:theme :accent
|
||||||
:icon :main-icons/public-chat
|
:icon :main-icons/public-chat
|
||||||
|
@ -127,7 +128,8 @@
|
||||||
:subtitle (i18n/label :t/join-new-public-chat)
|
:subtitle (i18n/label :t/join-new-public-chat)
|
||||||
:on-press (fn []
|
:on-press (fn []
|
||||||
(re-frame/dispatch [:chat.ui/start-public-chat search-value])
|
(re-frame/dispatch [:chat.ui/start-public-chat search-value])
|
||||||
(re-frame/dispatch [:set :public-group-topic nil]))}])])))
|
(re-frame/dispatch [:set :public-group-topic nil])
|
||||||
|
(re-frame/dispatch [:search/home-filter-changed nil]))}])])))
|
||||||
|
|
||||||
(views/defview chats-list []
|
(views/defview chats-list []
|
||||||
(views/letsubs [loading? [:chats/loading?]
|
(views/letsubs [loading? [:chats/loading?]
|
||||||
|
|
|
@ -170,6 +170,7 @@
|
||||||
:on-press #(do
|
:on-press #(do
|
||||||
(re-frame/dispatch [:dismiss-keyboard])
|
(re-frame/dispatch [:dismiss-keyboard])
|
||||||
(re-frame/dispatch [:chat.ui/navigate-to-chat chat-id])
|
(re-frame/dispatch [:chat.ui/navigate-to-chat chat-id])
|
||||||
|
(re-frame/dispatch [:search/home-filter-changed nil])
|
||||||
(if public?
|
(if public?
|
||||||
(re-frame/dispatch [:chat.ui/mark-public-all-read chat-id])
|
(re-frame/dispatch [:chat.ui/mark-public-all-read chat-id])
|
||||||
(re-frame/dispatch [:chat.ui/mark-messages-seen :chat])))
|
(re-frame/dispatch [:chat.ui/mark-messages-seen :chat])))
|
||||||
|
|
Loading…
Reference in New Issue