mirror of
https://github.com/RoboSats/robosats.git
synced 2024-09-11 14:05:51 +03:00
CR 2
This commit is contained in:
parent
c82790cb81
commit
11212d30ee
@ -169,6 +169,9 @@ const EncryptedTurtleChat: React.FC<Props> = ({
|
||||
.post(`/api/chat`, {
|
||||
PGP_message: value,
|
||||
})
|
||||
.then((response) => {
|
||||
if (response) onMessage(response as ServerMessage)
|
||||
})
|
||||
.finally(() => {
|
||||
setWaitingEcho(false);
|
||||
setValue('');
|
||||
@ -185,6 +188,9 @@ const EncryptedTurtleChat: React.FC<Props> = ({
|
||||
PGP_message: encryptedMessage.toString().split('\n').join('\\'),
|
||||
order: orderId,
|
||||
})
|
||||
.then((response) => {
|
||||
if (response) onMessage(response as ServerMessage)
|
||||
})
|
||||
.finally(() => {
|
||||
setWaitingEcho(false);
|
||||
setValue('');
|
||||
|
Loading…
Reference in New Issue
Block a user