From 459bf1621a5f6db994a00ae73c323d4699e87221 Mon Sep 17 00:00:00 2001 From: Sean Hagstrom Date: Mon, 11 Mar 2024 10:10:50 +0000 Subject: [PATCH] Show toast after sending contact request (#19144) * chore: add english translations for "Contact request sent" * feature: add toast notification when sending a contact request --- .../contexts/profile/contact/contact_request/view.cljs | 7 ++++++- translations/en.json | 1 + 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/src/status_im/contexts/profile/contact/contact_request/view.cljs b/src/status_im/contexts/profile/contact/contact_request/view.cljs index 4019306be5..fc8e04e64f 100644 --- a/src/status_im/contexts/profile/contact/contact_request/view.cljs +++ b/src/status_im/contexts/profile/contact/contact_request/view.cljs @@ -20,7 +20,12 @@ on-message-submit (rn/use-callback (fn [] (rf/dispatch [:hide-bottom-sheet]) (rf/dispatch [:contact.ui/send-contact-request - public-key message])) + public-key message]) + (rf/dispatch [:toasts/upsert + {:id :send-contact-request + :type :positive + :text (i18n/label + :t/contact-request-was-sent)}])) [public-key message])] [:<> [quo/drawer-top diff --git a/translations/en.json b/translations/en.json index ea9098d32a..94cbddd9e1 100644 --- a/translations/en.json +++ b/translations/en.json @@ -1975,6 +1975,7 @@ "send-contact-request-message": "To start a chat you need to become contacts", "contact-request": "Contact request", "send-contact-request": "Send contact request", + "contact-request-was-sent": "Contact request sent", "contact-request-sent-to": "Contact request sent to", "contact-request-was-accepted": "Contact request accepted", "contact-request-is-now-a-contact": "is now a contact",