Merge pull request #758 from GetStream/hotfix/markallread

fix(llc): fix client.markAllRead api request
This commit is contained in:
Salvatore Giordano
2021-11-05 10:52:05 +01:00
committed by GitHub
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);
}