Fix permanent room deletion bug (#526)

This commit is contained in:
Etoh 2022-05-15 11:35:40 +01:00 committed by GitHub
parent e581fc3417
commit f555c1d7a1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -482,6 +482,8 @@ class RoomManager(object):
def _deleteRoomIfEmpty(self, room):
if room.isEmpty() and room.getName():
if self._roomsDbHandle and room.isPermanent():
return
if self._roomsDbHandle and room.isNotPermanent():
if room.isPersistent() and not room.isPlaylistEmpty():
return