Prevent unnecessary api request for chats

This commit is contained in:
2024-02-09 13:42:11 +01:00
parent f7144884e3
commit da28a13268
2 changed files with 2 additions and 2 deletions

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");
} 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);