Skip to content

Notify users when an order returns to Pending or is canceled by timeout #528

@Catrya

Description

@Catrya

Currently, when an order returns to status Pending (taker doesn't respond) or goes to Canceled (maker doesn't respond) by timeout, mostrod doesn't send notifications to the involved users. To detect the status change, clients must interpret kind 38383 events from all relays with the updated status, which may cause inconsistent states in the UI.
Mostrod should send gift wraps notifying both users (maker and taker) when an order changes status by timeout.

Cases to implement:

  1. Order goes from Waiting-buyer-invoice or Waiting-payment to Pending (taker didn't submit invoice or pay the hold invoice in time)
  • Send gift wrap to taker notifying the cancellation (action:canceled)
  • Send gift wrap to maker notifying that the order returned to Pending (Action:NewOrder and in the payload the order details)
  1. Order goes from Waiting-buyer-invoice or Waiting-payment to Canceled (maker didn't submit invoice or pay the hold invoice in time)
  • Send gift wrap to taker notifying the cancellation (action:canceled)
  • Send gift wrap to maker notifying the cancellation (action:canceled)

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions