Skip to content

Commit

Permalink
rename message history request -> device sync request
Browse files Browse the repository at this point in the history
  • Loading branch information
codabrink committed Oct 18, 2024
1 parent 23c093c commit a568ab9
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions proto/mls/message_contents/content.proto
Original file line number Diff line number Diff line change
Expand Up @@ -61,10 +61,10 @@ message PlaintextEnvelope {
oneof message_type {
// Expected to be EncodedContent
bytes content = 2;
// Initiator sends a request to receive message history
MessageHistoryRequest request = 3;
// Some other authorized installation sends a reply
MessageHistoryReply reply = 4;
// Initiator sends a request to receive sync payload
DeviceSyncRequest request = 3;
// Some other authorized installation sends a reply with a link to payload
DeviceSyncReply reply = 4;
}
}

Expand All @@ -76,26 +76,26 @@ message PlaintextEnvelope {
}
}

// Initiator or new installation id requesting a history will send a request
message MessageHistoryRequest {
// Initiator or new installation id requesting a sync payload send a request
message DeviceSyncRequest {
// Unique identifier for each request
string request_id = 1;
// Ensures a human is in the loop
string pin_code = 2;
}

// Pre-existing installation id capable of supplying a history sends this reply
message MessageHistoryReply {
// Pre-existing installation id capable of supplying a sync payload sends this reply
message DeviceSyncReply {
// Must match an existing request_id from a message history request
string request_id = 1;
// Where the messages can be retrieved from
string url = 2;
// Generated input 'secret' for the AES Key used to encrypt the message-bundle
MessageHistoryKeyType encryption_key = 3;
DeviceSyncKeyType encryption_key = 3;
}

// Key used to encrypt the message-bundle
message MessageHistoryKeyType {
message DeviceSyncKeyType {
oneof key {
bytes chacha20_poly1305 = 1;
}
Expand Down

0 comments on commit a568ab9

Please sign in to comment.