develop-feedback #24

Merged
MineTec merged 6 commits from develop-feedback into develop 2024-02-09 15:36:46 +00:00
2 changed files with 2 additions and 2 deletions
Showing only changes of commit da28a13268 - Show all commits

View File

@ -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"); if(data.statusCode >= 400 || data.statusCode < 200) throw Exception("Response status code '${data.statusCode}' might indicate an error");
} catch(e) { } catch(e) {
log(e.toString()); 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); //dynamic jsonData = jsonDecode(data.body);

View File

@ -18,6 +18,7 @@ class ChatProps extends DataHolder {
@override @override
void run() { void run() {
notifyListeners(); notifyListeners();
if(_queryToken.isEmpty) return;
DateTime requestStart = DateTime.now(); DateTime requestStart = DateTime.now();
GetChatCache( GetChatCache(
@ -27,7 +28,6 @@ class ChatProps extends DataHolder {
_getChatResponse = data; _getChatResponse = data;
notifyListeners(); notifyListeners();
} }
); );
} }