feat: verify signatures for incoming requests

This commit is contained in:
Timo Kösters 2021-04-21 14:06:39 +02:00
parent f89e3668fd
commit 1f84013b2a
No known key found for this signature in database
GPG key ID: 24DA7517711A2BA4
2 changed files with 149 additions and 9 deletions

View file

@ -2106,7 +2106,10 @@ pub fn get_room_information_route<'a>(
let room_id = db
.rooms
.id_from_alias(&body.room_alias)?
.ok_or(Error::BadRequest(ErrorKind::NotFound, "Room alias not found."))?;
.ok_or(Error::BadRequest(
ErrorKind::NotFound,
"Room alias not found.",
))?;
Ok(get_room_information::v1::Response {
room_id,