From 398fcc92a46aa09bd69042fc6954be30108cba8d Mon Sep 17 00:00:00 2001 From: akwizgran Date: Mon, 13 Apr 2015 13:36:49 +0000 Subject: [PATCH] akwizgran created page: ForumApp --- MessagingApp.markdown | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/MessagingApp.markdown b/MessagingApp.markdown index c34aaf1..b0243e4 100644 --- a/MessagingApp.markdown +++ b/MessagingApp.markdown @@ -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.