mirror of
https://github.com/immich-app/immich.git
synced 2026-02-10 19:07:55 +03:00
Update main_timeline.page.dart
This commit is contained in:
@@ -15,6 +15,9 @@ class MainTimelinePage extends ConsumerWidget {
|
||||
final memoryLaneProvider = ref.watch(driftMemoryFutureProvider);
|
||||
final memoriesEnabled = ref.watch(currentUserProvider.select((user) => user?.memoryEnabled ?? true));
|
||||
|
||||
// TODO: the user preferences need to be updated
|
||||
// from the server to get live hiding/showing of memory lane
|
||||
|
||||
return memoryLaneProvider.maybeWhen(
|
||||
data: (memories) {
|
||||
return memories.isEmpty || !memoriesEnabled
|
||||
|
||||
Reference in New Issue
Block a user