|
@@ -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) {
|