Skip to content

Commit

Permalink
Send Canceled message to client after cancel
Browse files Browse the repository at this point in the history
status WaitingPayment
  • Loading branch information
grunch committed Jan 15, 2025
1 parent a0dfe50 commit 09648f9
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/app/cancel.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(())
}
}

0 comments on commit 09648f9

Please sign in to comment.