Show toast after sending contact request (#19144)

* chore: add english translations for "Contact request sent"

* feature: add toast notification when sending a contact request
This commit is contained in:
Sean Hagstrom 2024-03-11 10:10:50 +00:00 committed by GitHub
parent ca9346a931
commit 459bf1621a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 7 additions and 1 deletions

View File

@ -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

View File

@ -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",