Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

[mob][photos] show internal in UI only

laurenspriem809fe6ab2c3a
diff --git a/mobile/lib/models/smart_memory.dart b/mobile/lib/models/smart_memory.dart
index 999525f98e..06d9c1cd15 100644
--- a/mobile/lib/models/smart_memory.dart
+++ b/mobile/lib/models/smart_memory.dart
@@ -40,13 +40,12 @@ class SmartMemory {
SmartMemory(
this.memories,
this.type,
- title,
+ this.title,
this.firstDateToShow,
this.lastDateToShow, {
this.firstCreationTime,
this.lastCreationTime,
- }) : title = title + "(I)";
- // TODO: lau: remove (I) from name when opening up the feature flag
+ });
bool get notForShow => firstDateToShow == 0 && lastDateToShow == 0;
diff --git a/mobile/lib/ui/home/memories/memory_cover_widget.dart b/mobile/lib/ui/home/memories/memory_cover_widget.dart
index e825a003cd..270bdb0f4a 100644
--- a/mobile/lib/ui/home/memories/memory_cover_widget.dart
+++ b/mobile/lib/ui/home/memories/memory_cover_widget.dart
@@ -47,7 +47,8 @@ class _MemoryCoverWidgetState extends State<MemoryCoverWidget> {
final widthOfScreen = MediaQuery.sizeOf(context).width;
final index = _getNextMemoryIndex();
- final title = widget.title ?? _getTitle(widget.memories[index]);
+ // TODO: lau: remove (I) from name when opening up the feature flag
+ final title = widget.title != null ? widget.title! + "(I)" : _getTitle(widget.memories[index]);
final memory = widget.memories[index];
final isSeen = memory.isSeen();
final brightness =