akwizgran created page: ForumApp

akwizgran
2015-04-13 13:36:49 +00:00
parent 282b07f647
commit 398fcc92a4

@@ -7,7 +7,7 @@ MessagingApp has a single channel with the following random identifier:
### Message types
**0: PRIVATE_MESSAGE** - The content is a [BDF](BDF) list with two elements: `body` (string) and `attachments` (dictionary, may be null). Each key in `attachments` is the name of an attachment, and the value is a list with two elements: `mime_type` (string) and `message_id` (raw, exactly HASH_LEN bytes).
**0: PRIVATE_MESSAGE** - The content is a [BDF](BDF) list with two elements: `body` (string) and `attachments` (dictionary, may be null). Each key in `attachments` is the name of an attachment, and the value is a list with two elements: `mime_type` (string) and `message_id` (raw, HASH_LEN bytes).
**1: ATTACHMENT** - The content is raw data.
@@ -16,6 +16,8 @@ MessagingApp has a single channel with the following random identifier:
* A PRIVATE_MESSAGE is valid if it is well-formed.
* An ATTACHMENT is valid if it is referenced by a valid PRIVATE_MESSAGE.
Note that a PRIVATE_MESSAGE can be validated before its attachments have been received.
### Storage policy
* All valid local messages are stored.
@@ -24,5 +26,5 @@ MessagingApp has a single channel with the following random identifier:
### Sharing policy
* Each valid local message is shared with one remote device.
* A valid local message is shared with one remote device.
* Remote messages are not shared with other remote devices.