@@ -163,8 +163,8 @@ struct EncryptedForDestination {
163
163
// / Determine the Pro features that are used in a given conversation message.
164
164
// /
165
165
// / Inputs:
166
- // / - `msg_size` -- the size of the message in bytes to determine if the message requires access to
167
- // / the higher character limit available in Session Pro
166
+ // / - `msg_size` -- the size of the message in UTF16 code units to determine if the message requires
167
+ // / access to the higher character limit available in Session Pro
168
168
// / - `flags` -- extra pro features that are known by clients that they wish to be activated on
169
169
// / this message
170
170
// /
@@ -232,10 +232,9 @@ EncryptedForDestination encrypt_for_destination(
232
232
// / decrypted with the specified Ed25519 private key in the `keys` object. Only one of these keys
233
233
// / need to be set depending on the type of envelope payload passed into the function.
234
234
// /
235
- // / If the message does not use Session Pro features, the pro status will be set to nil and all
236
- // / other pro fields are to be ignored. If the pro status is non-nil then the pro fields will be
237
- // / populated with data about the Session Pro proof embedded in the envelope including the features
238
- // / used and if the proof was valid/expired e.t.c.
235
+ // / If the message does not use Session Pro features, the `pro` object will be set to nil. Otherwise
236
+ // / the pro fields will be populated with data about the Session Pro proof embedded in the envelope
237
+ // / including the features used and if the proof was valid/expired e.t.c.
239
238
// /
240
239
// / This function will throw if parsing failed such as a required field is missing, the field is
241
240
// / smaller or larger than expected, decryption failed, or an invariant failed. Notably this
0 commit comments