[mob][photos] Fallback to using first file as thumbnail for contacts section elements if PersonFaceWidget fails in contact section
This commit is contained in:
@@ -108,6 +108,13 @@ class _ContactSearchThumbnailWidgetState
|
||||
return PersonFaceWidget(
|
||||
snapshot.data!,
|
||||
personId: _personID,
|
||||
onErrorCallback: () {
|
||||
if (mounted) {
|
||||
setState(() {
|
||||
_mostRecentFileOfPerson = null;
|
||||
});
|
||||
}
|
||||
},
|
||||
);
|
||||
} else if (snapshot.connectionState == ConnectionState.done &&
|
||||
snapshot.data == null) {
|
||||
|
||||
@@ -213,6 +213,13 @@ class _ContactRecommendationState extends State<ContactRecommendation> {
|
||||
return PersonFaceWidget(
|
||||
snapshot.data!,
|
||||
personId: _personID,
|
||||
onErrorCallback: () {
|
||||
if (mounted) {
|
||||
setState(() {
|
||||
_mostRecentFileOfPerson = null;
|
||||
});
|
||||
}
|
||||
},
|
||||
);
|
||||
} else if (snapshot.connectionState ==
|
||||
ConnectionState.done &&
|
||||
|
||||
Reference in New Issue
Block a user