upgrade_room_route: fix state lock

This was using the lock for the replacement room to send events to the
original room, which may or may not cause problems.
This commit is contained in:
Lambda 2024-06-23 18:11:41 +00:00
parent ef1b6fe111
commit aea6019c0a

View file

@ -671,7 +671,6 @@ pub(crate) async fn upgrade_room_route(
.await?; .await?;
// Change lock to replacement room // Change lock to replacement room
drop(original_state_lock);
let mutex_state = Arc::clone( let mutex_state = Arc::clone(
services() services()
.globals .globals
@ -912,7 +911,7 @@ pub(crate) async fn upgrade_room_route(
}, },
sender_user, sender_user,
&body.room_id, &body.room_id,
&replacement_state_lock, &original_state_lock,
) )
.await?; .await?;