This commit is contained in:
KoalaSat 2022-11-06 21:07:18 +01:00
parent c82790cb81
commit 11212d30ee
No known key found for this signature in database
GPG Key ID: 2F7F61C6146AB157

View File

@ -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('');