diff --git a/Blog-Sharing-Client.md b/Blog-Sharing-Client.md index a181dd2..cccc16c 100644 --- a/Blog-Sharing-Client.md +++ b/Blog-Sharing-Client.md @@ -10,17 +10,17 @@ The client uses a separate BSP group for each pair of contacts. The [group descr The sharing protocol uses five message types. All communication happens between two contacts, who have symmetrical roles. The messages referring to each blog constitute a session. -**0: INVITE** - Sent by the inviter to the invitee. The message body is a BDF list with four elements: `messageType` (int), `previousMessageId` (unique ID or null), `descriptor` (list), and `message` (string or null). +**0: INVITE** - Sent by either party to start or restart a session. The message body is a BDF list with four elements: `messageType` (int), `previousMessageId` (unique ID or null), `descriptor` (list), and `message` (string or null). `previousMessageId` is the ID of the previous message in this session, if any. `descriptor` is the [descriptor of the blog](Blog-Client#group-identifiers) being shared. `message` is an optional message from the inviter to the invitee. The blog ID must be calculated from the descriptor, as it is used by subsequent messages in the session. -The inviter sets the blog's visibility to VISIBLE when sending an invite message. +The sender sets the blog's visibility to VISIBLE when sending an invite message. -**1: ACCEPT** - Sent by the invitee to the inviter in response to an invite. The message body is a BDF list with three elements: `messageType` (int), `blogId` (unique ID), and `previousMessageId` (unique ID). +**1: ACCEPT** - Sent in response to an invite. The message body is a BDF list with three elements: `messageType` (int), `blogId` (unique ID), and `previousMessageId` (unique ID). -The invitee sets the blog's visibility to SHARED when sending an accept message. The inviter sets the blog's visibility to SHARED when receiving an accept message. +The sender sets the blog's visibility to SHARED when sending an accept message. The recipient sets the blog's visibility to SHARED when receiving an accept message. -**2: DECLINE** - Sent by the invitee to the inviter in response to an invite. The message body is a BDF list with three elements: `messageType` (int), `blogId` (unique ID), and `previousMessageId` (unique ID). +**2: DECLINE** - Sent in response to an invite. The message body is a BDF list with three elements: `messageType` (int), `blogId` (unique ID), and `previousMessageId` (unique ID). The inviter sets the blog's visibility to INVISIBLE when receiving a decline message.