Skip to main content

add_backup_keys_for_room_route

Function add_backup_keys_for_room_route 

Source
pub(crate) async fn add_backup_keys_for_room_route(
    __arg0: State<State>,
    body: Args<Request>,
) -> Result<Response>
Expand description

ยงPUT /_matrix/client/r0/room_keys/keys/{roomId}

Add the received backup keys to the database.

  • Only manipulating the most recently created version of the backup is allowed
  • Adds the keys to the backup
  • Returns the new number of keys in this backup and the etag