mirror of
https://github.com/RoboSats/robosats.git
synced 2025-01-18 12:11:35 +00: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