mirror of
https://github.com/logos-messaging/libchat.git
synced 2026-05-13 05:29:34 +00:00
chat_proto import paths
This commit is contained in:
parent
e56c9578c0
commit
a162729d32
@ -272,13 +272,9 @@ where
|
|||||||
let a = AddressedEncryptedPayload {
|
let a = AddressedEncryptedPayload {
|
||||||
delivery_address: self.delivery_address(),
|
delivery_address: self.delivery_address(),
|
||||||
data: EncryptedPayload {
|
data: EncryptedPayload {
|
||||||
encryption: Some(
|
encryption: Some(encrypted_payload::Encryption::Plaintext(Plaintext {
|
||||||
chat_proto::logoschat::encryption::encrypted_payload::Encryption::Plaintext(
|
payload: mls_message_out.to_bytes().unwrap().into(),
|
||||||
Plaintext {
|
})),
|
||||||
payload: mls_message_out.to_bytes().unwrap().into(),
|
|
||||||
},
|
|
||||||
),
|
|
||||||
),
|
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -289,10 +285,8 @@ where
|
|||||||
&mut self,
|
&mut self,
|
||||||
encoded_payload: EncryptedPayload,
|
encoded_payload: EncryptedPayload,
|
||||||
) -> Result<Option<ContentData>, ChatError> {
|
) -> Result<Option<ContentData>, ChatError> {
|
||||||
use chat_proto::logoschat::encryption::encrypted_payload::Encryption;
|
|
||||||
|
|
||||||
let bytes = match encoded_payload.encryption {
|
let bytes = match encoded_payload.encryption {
|
||||||
Some(Encryption::Plaintext(pt)) => pt.payload,
|
Some(encrypted_payload::Encryption::Plaintext(pt)) => pt.payload,
|
||||||
_ => {
|
_ => {
|
||||||
return Err(ChatError::ProtocolExpectation(
|
return Err(ChatError::ProtocolExpectation(
|
||||||
"None",
|
"None",
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user