[mob][photos] Fix minor issues with selection in in-app link view

This commit is contained in:
ashilkn 2024-11-25 20:41:00 +05:30
parent 8541eaee60
commit d514a8ea40
2 changed files with 4 additions and 2 deletions

View File

@ -44,7 +44,10 @@ class GalleryFileWidget extends StatelessWidget {
CollectionsService.instance.isSharedPublicLink(file.collectionID!);
}
Color selectionColor = Colors.white;
if (isFileSelected && file.isUploaded && file.ownerID != currentUserID) {
if (isFileSelected &&
file.isUploaded &&
file.ownerID != currentUserID &&
!fileIsFromSharedPublicLink) {
final avatarColors = getEnteColorScheme(context).avatarColors;
selectionColor =
avatarColors[(file.ownerID!).remainder(avatarColors.length)];

View File

@ -65,7 +65,6 @@ class SharedPublicCollectionPage extends StatelessWidget {
initialFiles: initialFiles,
albumName: c.collection.displayName,
sortAsyncFn: () => c.collection.pubMagicMetadata.asc ?? false,
showSelectAllByDefault: galleryType != GalleryType.sharedPublicCollection,
);
return GalleryFilesState(