[mob][photos] easier debugging
This commit is contained in:
@@ -242,6 +242,7 @@ extension SectionTypeExtensions on SectionType {
|
||||
|
||||
case SectionType.moment:
|
||||
if (flagService.internalUser) {
|
||||
// TODO: lau: remove this whole smart memories and moment altogether
|
||||
return SearchService.instance.smartMemories(context, limit);
|
||||
}
|
||||
return SearchService.instance.getRandomMomentsSearchResults(context);
|
||||
|
||||
@@ -1193,7 +1193,13 @@ class SearchService {
|
||||
BuildContext context,
|
||||
int? limit,
|
||||
) async {
|
||||
final memories = await memoriesCacheService.getMemories(limit);
|
||||
final fakeCache = MemoriesCache(
|
||||
toShowMemories: [],
|
||||
peopleShownLogs: [],
|
||||
tripsShownLogs: [],
|
||||
);
|
||||
final memories =
|
||||
await smartMemoriesService.calcMemories(DateTime.now(), fakeCache);
|
||||
final searchResults = <GenericSearchResult>[];
|
||||
for (final memory in memories) {
|
||||
final files = Memory.filesFromMemories(memory.memories);
|
||||
|
||||
Reference in New Issue
Block a user