This repository was archived by the owner on Aug 15, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +12
-7
lines changed
Expand file tree Collapse file tree 1 file changed +12
-7
lines changed Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ namespace polyproto.chat.models {
88 @ added (Version .`v0.1.0-alpha.0` )
99 model Channel {
1010 id : string ;
11- data : ChannelData | EncryptedRoutedData ;
11+ data : ChannelData | EncryptedMessageData ;
1212 }
1313 @ added (Version .`v0.1.0-alpha.0` )
1414 model ChannelData {
@@ -93,12 +93,17 @@ namespace polyproto.chat.models {
9393 }
9494
9595 @ added (Version .`v0.1.0-alpha.0` )
96- // TODO: This is likely wrong? Encrypted data can only be parsed
97- // when... it is unencrypted, so data: T likely makes no sense...
98- model EncryptedRoutedData {
96+ @ doc ("""
97+ "EncryptedMessageData" is encrypted message data with unencrypted metadata. The amount of
98+ metadata that is not encrypted is kept to an absolute minimum but is required, so that the
99+ server can know who to attempt to deliver the message to.
100+
101+ Namely, this unencrypted metadata is the `dest_id`, short for "destination identifer".
102+ This is the identifier of the channel, group or user to which the message should be
103+ delivered.
104+ """ )
105+ model EncryptedMessageData {
99106 data : string ;
100- mls_epoch_number : uint64 ;
101- mls_group_id : string ;
102- _padding ? : string ;
107+ dest_id : string ;
103108 }
104109}
You can’t perform that action at this time.
0 commit comments