fix for concurrent modification of list error

pull/1183/head
ggurdin 1 year ago
parent e25b90c6db
commit 340e90ac38

@ -25,7 +25,8 @@ extension PangeaClient on Client {
.toList();
Future<List<Room>> get classesAndExchangesImTeaching async {
for (final Room space in rooms.where((room) => room.isSpace)) {
final allSpaces = rooms.where((room) => room.isSpace);
for (final Room space in allSpaces) {
if (space.getState(EventTypes.RoomPowerLevels) == null) {
await space.postLoad();
}

Loading…
Cancel
Save