Skip to content

armgit / ente

Public Imported from GitHub
0

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

Fix shuffle clip memories

laurenspriemf21ed45fee3e
diff --git a/mobile/lib/services/smart_memories_service.dart b/mobile/lib/services/smart_memories_service.dart
index 5cd559d7c6..16dbf8ff7c 100644
--- a/mobile/lib/services/smart_memories_service.dart
+++ b/mobile/lib/services/smart_memories_service.dart
@@ -766,7 +766,7 @@ class SmartMemoriesService {
// Loop through the clip types and add based on rotation
clipMemoriesLoop:
- for (final clipMemoryType in ClipMemoryType.values..shuffle()) {
+ for (final clipMemoryType in [...ClipMemoryType.values]..shuffle()) {
final clipMemory = clipTypeToMemory[clipMemoryType];
if (clipMemory == null) continue;
for (final shownLog in shownClip) {