From 6c4dd2bc66f8c11e0ef67c0f534f59df1ffb0daa Mon Sep 17 00:00:00 2001
From: vjrj <vjrj@comunes.org>
Date: Fri, 5 May 2023 21:03:13 +0200
Subject: [PATCH] Await to new contact with resized avatar

---
 lib/g1/api.dart | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/g1/api.dart b/lib/g1/api.dart
index 76234331..29a71784 100644
--- a/lib/g1/api.dart
+++ b/lib/g1/api.dart
@@ -75,7 +75,7 @@ Future<Contact> getProfile(String pubKey,
     }
     final Map<String, dynamic> profile =
         const JsonDecoder().convert(cPlusResponse.body) as Map<String, dynamic>;
-    final Contact c = contactFromResultSearch(profile);
+    final Contact c = await contactFromResultSearch(profile);
     if (!onlyCPlusProfile) {
       // This penalize the gva rate limit
       // final String? nick = await gvaNick(pubKey);
-- 
GitLab