mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-26 17:48:18 +01:00
akwizgran created page: ForumApp
@@ -7,7 +7,7 @@ MessagingApp has a single channel with the following random identifier:
|
|||||||
|
|
||||||
### Message types
|
### 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.
|
**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.
|
* A PRIVATE_MESSAGE is valid if it is well-formed.
|
||||||
* An ATTACHMENT is valid if it is referenced by a valid PRIVATE_MESSAGE.
|
* 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
|
### Storage policy
|
||||||
|
|
||||||
* All valid local messages are stored.
|
* All valid local messages are stored.
|
||||||
@@ -24,5 +26,5 @@ MessagingApp has a single channel with the following random identifier:
|
|||||||
|
|
||||||
### Sharing policy
|
### 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.
|
* Remote messages are not shared with other remote devices.
|
||||||
|
|||||||
Reference in New Issue
Block a user