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