Mark as read button
This commit is contained in:
parent
e8a8bb3b4f
commit
0f563455ff
4 changed files with 21 additions and 4 deletions
|
|
@ -5,7 +5,7 @@ import "package:nexus/helpers/extensions/get_full_room.dart";
|
|||
import "package:nexus/models/full_room.dart";
|
||||
|
||||
extension RoomToChildren on Room {
|
||||
Future<IList<FullRoom>> getAllChildren(Client client) async {
|
||||
Future<IList<FullRoom>> getAllChildren() async {
|
||||
final direct = await Future.wait(
|
||||
spaceChildren
|
||||
.map(
|
||||
|
|
@ -19,7 +19,7 @@ extension RoomToChildren on Room {
|
|||
return (await Future.wait(
|
||||
direct.map(
|
||||
(child) async => child.roomData.isSpace
|
||||
? await child.roomData.getAllChildren(client)
|
||||
? await child.roomData.getAllChildren()
|
||||
: [child],
|
||||
),
|
||||
)).expand((list) => list).toIList();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue