diff --git a/packages/at_contacts_flutter/lib/services/contact_service.dart b/packages/at_contacts_flutter/lib/services/contact_service.dart index d5fe7fe3..b22e4ada 100644 --- a/packages/at_contacts_flutter/lib/services/contact_service.dart +++ b/packages/at_contacts_flutter/lib/services/contact_service.dart @@ -599,7 +599,7 @@ class ContactService { return contactDetails; } - getProfilePicture(String atsign) async { + Future?> getProfilePicture(String atsign) async { var contactDetails = {}; var metadata = Metadata(); @@ -628,10 +628,12 @@ class ContactService { contactDetails['image'] = null; return contactDetails; } + }else { + return null; } } - fetchProfilePictureMetaData(String atsign) async { + Future fetchProfilePictureMetaData(String atsign) async { var metadata = Metadata(); metadata.isPublic = true; metadata.namespaceAware = false;