42 lines
815 B
Rust
Raw Normal View History

use crate::{
conversation::{ChatError, ConversationId, Convo, Id},
proto::EncryptedPayload,
types::{AddressedEncryptedPayload, ContentData},
};
2025-12-22 09:40:46 -08:00
#[derive(Debug)]
pub struct GroupTestConvo {}
impl GroupTestConvo {
pub fn new() -> Self {
Self {}
}
}
impl Id for GroupTestConvo {
2025-12-22 09:40:46 -08:00
fn id(&self) -> ConversationId {
// implementation
"grouptest"
}
}
2025-12-22 09:40:46 -08:00
impl Convo for GroupTestConvo {
fn send_message(
&mut self,
_content: &[u8],
) -> Result<Vec<AddressedEncryptedPayload>, ChatError> {
Ok(vec![])
2025-12-22 09:40:46 -08:00
}
fn handle_frame(
&mut self,
_encoded_payload: EncryptedPayload,
) -> Result<Option<ContentData>, ChatError> {
Ok(None)
}
fn remote_id(&self) -> String {
self.id().to_string()
}
2025-12-22 09:40:46 -08:00
}