Browse Source

cleaned some prints i left

juan 1 month ago
parent
commit
c690bd4631
1 changed files with 1 additions and 8 deletions
  1. 1 8
      lib/api_service.dart

+ 1 - 8
lib/api_service.dart

@@ -76,6 +76,7 @@ class ApiService {
         'offset': offset.toString(),
         'query': query
       });
+
       var response = await http.get(url);
 
       if (response.statusCode == 200) {
@@ -83,14 +84,6 @@ class ApiService {
         List<SerializableMessage> messages =
             messagesJson.map((mj) => SerializableMessage.fromJson(mj)).toList();
 
-        // messages[0].id;
-        // List<SerializableMessage> messages =
-        //     List<SerializableMessage>.from(json.decode(response.body));
-        //         List<SerializableMessage> messages =
-        // -            messagesJson.map((mj) => SerializableMessage.fromJson(mj)).toList();
-        // print("above mess");
-        
-        // print(messages[0].uid);
         return messages;
       }
     } catch (e) {