fix(hydra): Correctly create short state hash for <v12 rooms

This commit is contained in:
nexy7574
2025-09-12 00:23:40 +01:00
parent 4ed19a1630
commit ff92573103
2 changed files with 11 additions and 2 deletions
+8 -1
View File
@@ -177,7 +177,14 @@ pub(crate) async fn create_room_route(
};
let state_lock = match room_id.clone() {
| Some(room_id) => services.rooms.state.mutex.lock(&room_id).await,
| Some(room_id) => {
let _short_id = services
.rooms
.short
.get_or_create_shortroomid(&room_id)
.await;
services.rooms.state.mutex.lock(&room_id).await
},
| None => {
let temp_room_id = RoomId::new(services.globals.server_name());
trace!("Locking temporary room state mutex for {temp_room_id}");