fix for concurrent modification of list error
This commit is contained in:
parent
e25b90c6db
commit
340e90ac38
1 changed files with 2 additions and 1 deletions
|
|
@ -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…
Add table
Reference in a new issue