From 09648f9f00514571a8c226876166e0598c57220a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Francisco=20Calder=C3=B3n?= Date: Wed, 15 Jan 2025 17:05:40 -0300 Subject: [PATCH] Send Canceled message to client after cancel status WaitingPayment --- src/app/cancel.rs | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/app/cancel.rs b/src/app/cancel.rs index fd74312..0564316 100644 --- a/src/app/cancel.rs +++ b/src/app/cancel.rs @@ -336,6 +336,16 @@ pub async fn cancel_pay_hold_invoice( "{}: Canceled order Id {} republishing order", buyer_pubkey, order.id ); + // Notify to seller the order was canceled + send_new_order_msg( + request_id, + Some(order.id), + Action::Canceled, + None, + &event.rumor.pubkey, + None, + ) + .await; Ok(()) } }