add missing remove aliases on room upgrade transferring room aliases

Signed-off-by: strawberry <strawberry@puppygock.gay>
This commit is contained in:
strawberry 2024-08-17 02:22:35 -04:00 committed by Jason Volk
parent 2d9aab2e79
commit c40ed0c98e

View file

@ -756,6 +756,11 @@ pub(crate) async fn upgrade_room_route(
.local_aliases_for_room(&body.room_id)
.filter_map(Result::ok)
{
services
.rooms
.alias
.remove_alias(&alias, sender_user)
.await?;
services
.rooms
.alias