do not send message on tip

This commit is contained in:
Daniel Lugo 2020-11-11 06:34:32 -04:00
parent 1209911671
commit 26ff2e43d3

View file

@ -1065,19 +1065,6 @@ const sendSpontaneousPayment = async (
payment_request: orderResponse.response payment_request: orderResponse.response
}) })
if (Utils.successfulHandshakeAlreadyExists(to)) {
await sendMessage(
to,
Schema.encodeSpontaneousPayment(
amount,
memo || 'no memo',
payment.payment_preimage
),
require('../Mediator').getUser(),
require('../Mediator').mySEA
)
}
return payment return payment
} catch (e) { } catch (e) {
logger.error('Error inside sendPayment()') logger.error('Error inside sendPayment()')