diff --git a/core/conversations/src/inbox_v2.rs b/core/conversations/src/inbox_v2.rs index 0efbc21..84a7f72 100644 --- a/core/conversations/src/inbox_v2.rs +++ b/core/conversations/src/inbox_v2.rs @@ -50,13 +50,13 @@ impl MlsContext for PqMlsContext { }; 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, payload: frame.encode_to_vec().into(), }; 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(), }; @@ -77,8 +77,6 @@ impl InboxProtocolParams { } } -type ProtocolParams = InboxProtocolParams; - /// An PQ focused Conversation initializer. /// InboxV2 Incorporates an Account based identity system to support PQ based conversation protocols /// such as MLS. @@ -136,11 +134,11 @@ where } 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 { - 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, ChatError> {