mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-03 23:44:50 -04:00
Fix 'delete room' admin api to work on incomplete rooms (#11523)
If, for some reason, we don't have the create event, we should still be able to purge a room.
This commit is contained in:
parent
9c55dedc8c
commit
b1ecd19c5d
5 changed files with 33 additions and 37 deletions
|
@ -406,9 +406,6 @@ class PaginationHandler:
|
|||
force: set true to skip checking for joined users.
|
||||
"""
|
||||
with await self.pagination_lock.write(room_id):
|
||||
# check we know about the room
|
||||
await self.store.get_room_version_id(room_id)
|
||||
|
||||
# first check that we have no users in this room
|
||||
if not force:
|
||||
joined = await self.store.is_host_joined(room_id, self._server_name)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue