Skip to content

armgit / ente

Public Imported from GitHub
0

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

Fix latest feed preview item selection

ashilkn4d940c806c7b
diff --git a/mobile/apps/photos/lib/models/social/feed_data_provider.dart b/mobile/apps/photos/lib/models/social/feed_data_provider.dart
index 2f90c7b1ae..ce8984df00 100644
--- a/mobile/apps/photos/lib/models/social/feed_data_provider.dart
+++ b/mobile/apps/photos/lib/models/social/feed_data_provider.dart
@@ -192,7 +192,6 @@ class FeedDataProvider {
Future<FeedItem?> getLatestFeedItem() async {
final items = await getFeedItems(
limit: 1,
- includeSharedPhotos: false,
verifyFileExistence: false,
);
return items.isNotEmpty ? items.first : null;
diff --git a/mobile/apps/photos/lib/services/account/user_service.dart b/mobile/apps/photos/lib/services/account/user_service.dart
index d2769c3f10..3c465cfa14 100644
--- a/mobile/apps/photos/lib/services/account/user_service.dart
+++ b/mobile/apps/photos/lib/services/account/user_service.dart
@@ -211,14 +211,12 @@ class UserService {
kIsEmailMFAEnabled,
currentEmailMFAStatus,
);
- hasSecurityStatusChanged =
- hasSecurityStatusChanged ||
+ hasSecurityStatusChanged = hasSecurityStatusChanged ||
previousEmailMFAStatus != currentEmailMFAStatus;
final bool currentTwoFactorStatus =
userDetails.profileData!.isTwoFactorEnabled;
await setTwoFactor(value: currentTwoFactorStatus);
- hasSecurityStatusChanged =
- hasSecurityStatusChanged ||
+ hasSecurityStatusChanged = hasSecurityStatusChanged ||
previousTwoFactorStatus != currentTwoFactorStatus;
}
if (hasSecurityStatusChanged) {