fix(llc): fix client.markAllRead api request

This commit is contained in:
Salvatore Giordano
2021-11-05 10:40:19 +01:00
parent a15636da91
commit 5cd2839a70
2 changed files with 10 additions and 1 deletions
+6
View File
@@ -1,3 +1,9 @@
## 3.2.1
🐞 Fixed
- Fixed `StreamChatClient.markAllRead` api call
## 3.2.0
🐞 Fixed
@@ -84,7 +84,10 @@ class ChannelApi {
/// Mark all channels for this user as read
Future<EmptyResponse> markAllRead() async {
final response = await _client.post('/channels/read');
final response = await _client.post(
'/channels/read',
data: {},
);
return EmptyResponse.fromJson(response.data);
}