develop-feedback #24
@@ -47,7 +47,7 @@ abstract class TalkApi<T> extends ApiRequest {
 | 
			
		||||
      if(data.statusCode >= 400 || data.statusCode < 200) throw Exception("Response status code '${data.statusCode}' might indicate an error");
 | 
			
		||||
    } catch(e) {
 | 
			
		||||
      log(e.toString());
 | 
			
		||||
      throw ApiError("Request could not be dispatched: ${e.toString()}");
 | 
			
		||||
      throw ApiError("Request $endpoint could not be dispatched: ${e.toString()}");
 | 
			
		||||
    }
 | 
			
		||||
    //dynamic jsonData = jsonDecode(data.body);
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -18,6 +18,7 @@ class ChatProps extends DataHolder {
 | 
			
		||||
  @override
 | 
			
		||||
  void run() {
 | 
			
		||||
    notifyListeners();
 | 
			
		||||
    if(_queryToken.isEmpty) return;
 | 
			
		||||
    DateTime requestStart = DateTime.now();
 | 
			
		||||
 | 
			
		||||
    GetChatCache(
 | 
			
		||||
@@ -27,7 +28,6 @@ class ChatProps extends DataHolder {
 | 
			
		||||
 | 
			
		||||
        _getChatResponse = data;
 | 
			
		||||
        notifyListeners();
 | 
			
		||||
 | 
			
		||||
      }
 | 
			
		||||
    );
 | 
			
		||||
  }
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user