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 {
8
8
@ added (Version .`v0.1.0-alpha.0` )
9
9
model Channel {
10
10
id : string ;
11
- data : ChannelData | EncryptedRoutedData ;
11
+ data : ChannelData | EncryptedMessageData ;
12
12
}
13
13
@ added (Version .`v0.1.0-alpha.0` )
14
14
model ChannelData {
@@ -93,12 +93,17 @@ namespace polyproto.chat.models {
93
93
}
94
94
95
95
@ 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 {
99
106
data : string ;
100
- mls_epoch_number : uint64 ;
101
- mls_group_id : string ;
102
- _padding ? : string ;
107
+ dest_id : string ;
103
108
}
104
109
}
You can’t perform that action at this time.
0 commit comments