mirror of
https://github.com/logos-messaging/libchat.git
synced 2026-02-11 09:23:26 +00:00
Fixups
This commit is contained in:
parent
02dae0652d
commit
0ca5e7b08a
@ -1,7 +1,7 @@
|
|||||||
use std::{collections::HashMap, rc::Rc, sync::Arc};
|
use std::{collections::HashMap, rc::Rc, sync::Arc};
|
||||||
|
|
||||||
use crate::{
|
use crate::{
|
||||||
conversation::{ConversationStore, Convo, Id},
|
conversation::{ConversationId, ConversationStore, Convo, Id},
|
||||||
errors::ChatError,
|
errors::ChatError,
|
||||||
identity::Identity,
|
identity::Identity,
|
||||||
inbox::Inbox,
|
inbox::Inbox,
|
||||||
|
|||||||
@ -123,7 +123,7 @@ impl Inbox {
|
|||||||
pub fn handle_frame(
|
pub fn handle_frame(
|
||||||
&mut self,
|
&mut self,
|
||||||
enc_payload: EncryptedPayload,
|
enc_payload: EncryptedPayload,
|
||||||
) -> Result<(Box<dyn Convo>, Vec<ContentData>), ChatError> {
|
) -> Result<(Box<dyn Convo>, Option<ContentData>), ChatError> {
|
||||||
let handshake = Self::extract_payload(enc_payload)?;
|
let handshake = Self::extract_payload(enc_payload)?;
|
||||||
|
|
||||||
let header = handshake
|
let header = handshake
|
||||||
@ -142,7 +142,7 @@ impl Inbox {
|
|||||||
let convo = PrivateV1Convo::new_responder(seed_key, ephemeral_key.clone().into());
|
let convo = PrivateV1Convo::new_responder(seed_key, ephemeral_key.clone().into());
|
||||||
|
|
||||||
// TODO: Update PrivateV1 Constructor with DR, initial_message
|
// TODO: Update PrivateV1 Constructor with DR, initial_message
|
||||||
Ok((Box::new(convo), vec![]))
|
Ok((Box::new(convo), None))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user