remove unnecessary alias check on deleting room aliases
Signed-off-by: strawberry <strawberry@puppygock.gay>
This commit is contained in:
parent
826b1d1d62
commit
f1b41ce6e3
1 changed files with 0 additions and 9 deletions
|
@ -69,15 +69,6 @@ pub(crate) async fn delete_alias_route(
|
||||||
.appservice_checks(&body.room_alias, &body.appservice_info)
|
.appservice_checks(&body.room_alias, &body.appservice_info)
|
||||||
.await?;
|
.await?;
|
||||||
|
|
||||||
if services
|
|
||||||
.rooms
|
|
||||||
.alias
|
|
||||||
.resolve_local_alias(&body.room_alias)?
|
|
||||||
.is_none()
|
|
||||||
{
|
|
||||||
return Err(Error::BadRequest(ErrorKind::NotFound, "Alias does not exist."));
|
|
||||||
}
|
|
||||||
|
|
||||||
services
|
services
|
||||||
.rooms
|
.rooms
|
||||||
.alias
|
.alias
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue