mirror of
https://github.com/logos-messaging/libchat.git
synced 2026-06-30 13:09:28 +00:00
PR comments
This commit is contained in:
parent
b4dde00576
commit
10382c0066
@ -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,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user