A rehydrated device

This device can receive to-device events to get room keys that were send to it.

Methods

  • Returns void

  • Receive the to-device events that sent to the dehydrated device

    The rehydrated device will decrypt the events and pass the room keys into the OlmMachine.

    Arguments

    • to_device_events is a JSON-encoded result of the events array from /dehydrated_device/{device_id}/events.
    • decryption_settings: Optionally, the settings to use when decrypting to-device events. If not set, to-device events will be decrypted with a TrustRequirement of Untrusted.

    Returns an array of RoomKeyInfo, indicating the room keys that were received.

    Parameters

    Returns Promise<any[]>