kopia lustrzana https://gitlab.com/mysocialportal/relatica
Fix make list evaluation explicit in visibility dialog
rodzic
479fa2a545
commit
061a32c4fb
|
@ -16,7 +16,7 @@ Future<bool?> showVisibilityDialog(
|
|||
}
|
||||
|
||||
return circlesMap[c]?.name ?? 'Circle #$c';
|
||||
});
|
||||
}).toList();
|
||||
|
||||
final excludedCircles = visibility.excludedCircleIds.map((c) {
|
||||
if (c == '~') {
|
||||
|
@ -24,21 +24,25 @@ Future<bool?> showVisibilityDialog(
|
|||
}
|
||||
|
||||
return circlesMap[c]?.name ?? 'Circle #$c';
|
||||
});
|
||||
}).toList();
|
||||
|
||||
final allowedUsers = visibility.allowedUserIds.map(
|
||||
(u) => cm.getById(u).fold(
|
||||
onSuccess: (connection) => connection.handle,
|
||||
onError: (_) => 'User $u',
|
||||
),
|
||||
);
|
||||
final allowedUsers = visibility.allowedUserIds
|
||||
.map(
|
||||
(u) => cm.getById(u).fold(
|
||||
onSuccess: (connection) => connection.handle,
|
||||
onError: (_) => 'User $u',
|
||||
),
|
||||
)
|
||||
.toList();
|
||||
|
||||
final excludedUsers = visibility.excludedUserIds.map(
|
||||
(u) => cm.getById(u).fold(
|
||||
onSuccess: (connection) => connection.handle,
|
||||
onError: (_) => 'User $u',
|
||||
),
|
||||
);
|
||||
final excludedUsers = visibility.excludedUserIds
|
||||
.map(
|
||||
(u) => cm.getById(u).fold(
|
||||
onSuccess: (connection) => connection.handle,
|
||||
onError: (_) => 'User $u',
|
||||
),
|
||||
)
|
||||
.toList();
|
||||
|
||||
return showDialog<bool>(
|
||||
context: context,
|
||||
|
|
Ładowanie…
Reference in New Issue