PR comments

This commit is contained in:
Jazz Turner-Baggs 2026-06-15 12:39:53 -07:00
parent b4dde00576
commit 10382c0066
No known key found for this signature in database

View File

@ -34,6 +34,10 @@ use crate::{
conversation::{ChatError, Convo, GroupConvo},
};
/// Namespace used for de-mls (GroupV2) keypackages, so they don't collide
/// with the openmls (GroupV1) keypackage registered under the bare account id.
const DEMLS_KEYPACKAGE_NAMESPACE: &str = "demls";
/// This is a Test Wrapper of Demls MemberId Trait
/// Libchat has its own trait that will need to be intergrated at somepoint.
pub struct LocalDemlsMember {
@ -71,7 +75,7 @@ impl<'a> NamespacedIdentity<'a> {
}
fn prefix(id: &IdentId, namesapce: &str) -> String {
format!("{id}|{namesapce}")
format!("{namesapce}|{id}")
}
}
@ -93,10 +97,6 @@ impl IdentityProvider for NamespacedIdentity<'_> {
}
}
/// Namespace used for de-mls (GroupV2) keypackages, so they don't collide
/// with the openmls (GroupV1) keypackage registered under the bare account id.
const DEMLS_KEYPACKAGE_NAMESPACE: &str = "demls";
struct DemlsSetup {
member: LocalDemlsMember,
factory: DefaultConversationPluginsFactory,