remove type alias for ProtocolParams

This commit is contained in:
Jazz Turner-Baggs 2026-04-29 08:11:25 -07:00
parent fbb64408d1
commit 56f48c6a38
No known key found for this signature in database

View File

@ -50,13 +50,13 @@ impl MlsContext for PqMlsContext {
}; };
let envelope = EnvelopeV1 { let envelope = EnvelopeV1 {
conversation_hint: ProtocolParams::conversation_id_for_account_id(account_id), conversation_hint: InboxProtocolParams::conversation_id_for_account_id(account_id),
salt: 0, salt: 0,
payload: frame.encode_to_vec().into(), payload: frame.encode_to_vec().into(),
}; };
let outbound_msg = AddressedEnvelope { let outbound_msg = AddressedEnvelope {
delivery_address: ProtocolParams::delivery_address_for_account_id(account_id), delivery_address: InboxProtocolParams::delivery_address_for_account_id(account_id),
data: envelope.encode_to_vec(), data: envelope.encode_to_vec(),
}; };
@ -77,8 +77,6 @@ impl InboxProtocolParams {
} }
} }
type ProtocolParams = InboxProtocolParams;
/// An PQ focused Conversation initializer. /// An PQ focused Conversation initializer.
/// InboxV2 Incorporates an Account based identity system to support PQ based conversation protocols /// InboxV2 Incorporates an Account based identity system to support PQ based conversation protocols
/// such as MLS. /// such as MLS.
@ -136,11 +134,11 @@ where
} }
pub fn delivery_address(&self) -> String { pub fn delivery_address(&self) -> String {
ProtocolParams::delivery_address_for_account_id(&self.account_id) InboxProtocolParams::delivery_address_for_account_id(&self.account_id)
} }
pub fn id(&self) -> String { pub fn id(&self) -> String {
ProtocolParams::conversation_id_for_account_id(&self.account_id) InboxProtocolParams::conversation_id_for_account_id(&self.account_id)
} }
pub fn create_group_v1(&self) -> Result<GroupV1Convo<PqMlsContext, DS, RS>, ChatError> { pub fn create_group_v1(&self) -> Result<GroupV1Convo<PqMlsContext, DS, RS>, ChatError> {