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:
parent
ca9346a931
commit
459bf1621a
|
@ -20,7 +20,12 @@
|
||||||
on-message-submit (rn/use-callback (fn []
|
on-message-submit (rn/use-callback (fn []
|
||||||
(rf/dispatch [:hide-bottom-sheet])
|
(rf/dispatch [:hide-bottom-sheet])
|
||||||
(rf/dispatch [:contact.ui/send-contact-request
|
(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])]
|
[public-key message])]
|
||||||
[:<>
|
[:<>
|
||||||
[quo/drawer-top
|
[quo/drawer-top
|
||||||
|
|
|
@ -1975,6 +1975,7 @@
|
||||||
"send-contact-request-message": "To start a chat you need to become contacts",
|
"send-contact-request-message": "To start a chat you need to become contacts",
|
||||||
"contact-request": "Contact request",
|
"contact-request": "Contact request",
|
||||||
"send-contact-request": "Send 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-sent-to": "Contact request sent to",
|
||||||
"contact-request-was-accepted": "Contact request accepted",
|
"contact-request-was-accepted": "Contact request accepted",
|
||||||
"contact-request-is-now-a-contact": "is now a contact",
|
"contact-request-is-now-a-contact": "is now a contact",
|
||||||
|
|
Loading…
Reference in New Issue