fn from(forwarded_key: ForwardedRoomKeyEventContent) -> Self {
        let mut sender_claimed_keys: BTreeMap<DeviceKeyAlgorithm, String> = BTreeMap::new();
        sender_claimed_keys.insert(
            DeviceKeyAlgorithm::Ed25519,
            forwarded_key.sender_claimed_ed25519_key,
        );

        Self {
            algorithm: forwarded_key.algorithm,
            room_id: forwarded_key.room_id,
            session_id: forwarded_key.session_id,
            forwarding_curve25519_key_chain: forwarded_key.forwarding_curve25519_key_chain,
            sender_claimed_keys,
            sender_key: forwarded_key.sender_key,
            session_key: ExportedGroupSessionKey(forwarded_key.session_key),
        }
    }
/// Convert the content of a forwarded room key into a exported room key.
Convert the content of a forwarded room key into a exported room key.
Convert the content of a forwarded room key into a exported room key .
fn from(forwarded_key: ForwardedRoomKeyEventContent) -> Self {
        let mut sender_claimed_keys: BTreeMap<DeviceKeyAlgorithm, String> = BTreeMap::new();
        sender_claimed_keys.insert(
            DeviceKeyAlgorithm::Ed25519,
            forwarded_key.sender_claimed_ed25519_key,
        );
        Self {
            algorithm: forwarded_key.algorithm,
            room_id: forwarded_key.room_id,
            session_id: forwarded_key.session_id,
            forwarding_curve25519_key_chain: forwarded_key.forwarding_curve25519_key_chain,
            sender_claimed_keys,
            sender_key: forwarded_key.sender_key,
            session_key: ExportedGroupSessionKey(forwarded_key.session_key),
        }
    }
fn from ( forwarded_key : ForwardedRoomKeyEventContent ) -> Self { let mut sender_claimed_keys : BTreeMap < DeviceKeyAlgorithm , String > = BTreeMap :: new ( ) ; sender_claimed_keys . insert ( DeviceKeyAlgorithm :: Ed25519 , forwarded_key . sender_claimed_ed25519_key , ) ; Self { algorithm : forwarded_key . algorithm , room_id : forwarded_key . room_id , session_id : forwarded_key . session_id , forwarding_curve25519_key_chain : forwarded_key . forwarding_curve25519_key_chain , sender_claimed_keys , sender_key : forwarded_key . sender_key , session_key : ExportedGroupSessionKey ( forwarded_key . session_key ) , } }
Convert the content of a forwarded room key into a exported room key.
Convert the content of a forwarded room key into a exported room key .
forwarded_key
ForwardedRoomKeyEventContent
forwarded_key
ForwardedRoomKeyEventContent