remove unnecessary alias check on deleting room aliases

Signed-off-by: strawberry <strawberry@puppygock.gay>
This commit is contained in:
strawberry 2024-08-17 13:41:18 -04:00 committed by Jason Volk
parent 826b1d1d62
commit f1b41ce6e3

View file

@ -69,15 +69,6 @@ pub(crate) async fn delete_alias_route(
.appservice_checks(&body.room_alias, &body.appservice_info)
.await?;
if services
.rooms
.alias
.resolve_local_alias(&body.room_alias)?
.is_none()
{
return Err(Error::BadRequest(ErrorKind::NotFound, "Alias does not exist."));
}
services
.rooms
.alias