From db9d1a12519f99245ef5b313531a9f326bc5cacf Mon Sep 17 00:00:00 2001 From: Parvesh Monu Date: Tue, 16 Nov 2021 21:40:53 +0530 Subject: [PATCH] Remove chat from activity center after opening from public chat (#12815) --- src/status_im/contact/chat.cljs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/status_im/contact/chat.cljs b/src/status_im/contact/chat.cljs index edd833ef83..2206765846 100644 --- a/src/status_im/contact/chat.cljs +++ b/src/status_im/contact/chat.cljs @@ -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