forked from Henry-Hiles/nexus
minor changes
This commit is contained in:
parent
79a060be8d
commit
aa6b0f692c
3 changed files with 12 additions and 22 deletions
|
|
@ -1,10 +1,11 @@
|
|||
import "package:collection/collection.dart";
|
||||
import "package:fast_immutable_collections/fast_immutable_collections.dart";
|
||||
import "package:matrix/matrix.dart";
|
||||
import "package:nexus/helpers/extensions/get_full_room.dart";
|
||||
import "package:nexus/models/full_room.dart";
|
||||
|
||||
extension RoomToChildren on Room {
|
||||
Future<List<FullRoom>> getAllChildren(Client client) async {
|
||||
Future<IList<FullRoom>> getAllChildren(Client client) async {
|
||||
final direct = await Future.wait(
|
||||
spaceChildren
|
||||
.map(
|
||||
|
|
@ -21,6 +22,6 @@ extension RoomToChildren on Room {
|
|||
? await child.roomData.getAllChildren(client)
|
||||
: [child],
|
||||
),
|
||||
)).expand((list) => list).toList();
|
||||
)).expand((list) => list).toIList();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue