Fix room unlocking bug
This commit is contained in:
parent
f4bbac63e0
commit
dd4ba75fbf
1 changed files with 1 additions and 1 deletions
|
|
@ -78,7 +78,7 @@ Future<void> unlockSpace(Room space, Client client) async {
|
|||
for (final spaceChild in space.spaceChildren) {
|
||||
if (spaceChild.roomId == null) continue;
|
||||
final Room? child = client.getRoomById(spaceChild.roomId!);
|
||||
if (child == null) continue;
|
||||
if (child == null || child.isArchived || child.isAnalyticsRoom) continue;
|
||||
child.isSpace
|
||||
? await unlockSpace(child, client)
|
||||
: await unlockChat(child, client);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue