feat: /keys/query and /keys/claim over federation
This commit is contained in:
parent
7d14a46607
commit
728e176a06
2 changed files with 79 additions and 14 deletions
|
@ -2461,7 +2461,8 @@ pub async fn get_keys_route(
|
|||
&body.device_keys,
|
||||
|u| Some(u.server_name()) == body.sender_servername.as_deref(),
|
||||
&db,
|
||||
)?;
|
||||
)
|
||||
.await?;
|
||||
|
||||
db.flush().await?;
|
||||
|
||||
|
@ -2486,7 +2487,7 @@ pub async fn claim_keys_route(
|
|||
return Err(Error::bad_config("Federation is disabled."));
|
||||
}
|
||||
|
||||
let result = claim_keys_helper(&body.one_time_keys, &db)?;
|
||||
let result = claim_keys_helper(&body.one_time_keys, &db).await?;
|
||||
|
||||
db.flush().await?;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue