mirror of
https://github.com/markqvist/Sideband.git
synced 2025-07-23 23:10:59 -04:00
Save and display stamp status on messages
This commit is contained in:
parent
7ec35db6c9
commit
c6f82a917d
3 changed files with 19 additions and 1 deletions
|
@ -821,6 +821,8 @@ class RVDetails(MDRecycleView):
|
|||
t_str = ", but have ticket"
|
||||
if stamp_cost:
|
||||
self.entries.append({"icon": "postage-stamp", "text": f"Required stamp cost [b]{stamp_cost}[/b]"+t_str, "on_release": pass_job})
|
||||
else:
|
||||
self.entries.append({"icon": "postage-stamp", "text": f"No required stamp cost", "on_release": pass_job})
|
||||
if ticket_expires:
|
||||
valid_for = ticket_expires - time.time()
|
||||
self.entries.append({"icon": "ticket-confirmation", "text": f"Delivery ticket valid for [b]{RNS.prettytime(valid_for)}[/b]", "on_release": pass_job})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue