Remove chat from activity center after opening from public chat (#12815)

This commit is contained in:
Parvesh Monu 2021-11-16 21:40:53 +05:30 committed by GitHub
parent c16b0860ec
commit db9d1a1251
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -3,7 +3,8 @@
[status-im.navigation :as navigation]
[status-im.utils.fx :as fx]
[status-im.chat.models :as chat]
[status-im.contact.core :as contact]))
[status-im.contact.core :as contact]
[status-im.notifications-center.core :as notification-center]))
(fx/defn send-message-pressed
{:events [:contact.ui/send-message-pressed]
@ -11,6 +12,7 @@
[cofx {:keys [public-key]}]
(fx/merge cofx
{:dispatch-later [{:ms 1000 :dispatch [:chat.ui/start-chat public-key]}]}
(notification-center/accept-all-activity-center-notifications-from-chat public-key)
(navigation/pop-to-root-tab :chat-stack)))
(fx/defn contact-code-submitted