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)
|
||||
.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
|
||||
|
|
Loading…
Add table
Reference in a new issue