mirror of
https://github.com/logos-messaging/libchat.git
synced 2026-02-10 08:53:08 +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 crate::{
|
||||
conversation::{ConversationStore, Convo, Id},
|
||||
conversation::{ConversationId, ConversationStore, Convo, Id},
|
||||
errors::ChatError,
|
||||
identity::Identity,
|
||||
inbox::Inbox,
|
||||
|
||||
@ -123,7 +123,7 @@ impl Inbox {
|
||||
pub fn handle_frame(
|
||||
&mut self,
|
||||
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 header = handshake
|
||||
@ -142,7 +142,7 @@ impl Inbox {
|
||||
let convo = PrivateV1Convo::new_responder(seed_key, ephemeral_key.clone().into());
|
||||
|
||||
// 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