fix(admin): fix force-leaving rooms with no left_state PDU
This commit is contained in:
parent
2f11bf4d74
commit
a10bd71945
1 changed files with 2 additions and 1 deletions
|
|
@ -178,7 +178,8 @@ pub async fn leave_room(
|
|||
.rooms
|
||||
.state_cache
|
||||
.left_state(user_id, room_id)
|
||||
.await?
|
||||
.await
|
||||
.unwrap_or_default()
|
||||
},
|
||||
}
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue