-
Notifications
You must be signed in to change notification settings - Fork 6
Inbox table
a special Tea Party table. it is a system tapp. Another system tapp is Help Desk.
Because this is a system app. It (along with Help Desk) will be shown in all Tea Party generated tapps. That means any one create a Tea Party table, there will be these two system table on the UI.
A list of messages that still valid. After every message there are buttons:
- Reply
- Delete
- Save (future feature)
- Mark as spam
- Block sender (future feature)
Reply a message, also ask the inbox to refund the remaining deposit. because this is not a spam. A new message compose UI shows up. The reply address is filled up automatically.
If this received message has a "paid reply" mark on it, the reply is free of charge for the replied, because the original sender has paid for the reply. Otherwise, the replied need to pay as if this is a new message.
This will remove this message and ask the Inbox to refund the remaining deposit In the UI, do not delete this message in memory must yet. Mark it as deleted but still show in the UI. If user refresh browser, the message will no longer available because once click delete, it is deleted from the server and layer one.
save message to local storage. this is not in epoch7 feature.
a button that receiver mark as spam. All remaining deposit (cost when sender send) will be slashed
a button that receiver mark the sender as block list.
The same as reply, but need to copy paste receiver address Sender need to mark paid reply if he want to pay for the reply.
Future feature
After write a message (private or group), a message will tell the user how much he is supposed to pay. The B CML also query the user layer two balance. If not enough, this is also the best place to show the error asking them to top up. If the balance is enough, user agree with the cost. click send. the message is sent. see Push notification design#payment-and-signature.
For the paid reply, there is an additional cost for the reply message. If there is no reply after message expired, the additional cost will be refunded too.
Although sender need to pay to send message to receiver. In most cases, if the receiver read the message and did not click "spam" or "block list" button. The cost will be refunded to the sender.
If the receiver clicks "spam" or "block list". The cost will be slashed.
An Inbox Reserved Account is needed to store the funds that are prepared to refund.