Merge pull request #603 from TomBeckett/patch-1

This commit is contained in:
Sahil Kumar
2021-08-03 20:06:23 +05:30
committed by GitHub
3 changed files with 8 additions and 2 deletions
+6
View File
@@ -1,3 +1,9 @@
## Upcoming
🐞 Fixed
- Fixed `channel.markAllRead` throwing failed host lookup.
## 2.1.1
🐞 Fixed
@@ -84,7 +84,7 @@ 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');
return EmptyResponse.fromJson(response.data);
}
@@ -176,7 +176,7 @@ void main() {
});
test('markAllRead', () async {
const path = 'channels/read';
const path = '/channels/read';
when(() => client.post(path)).thenAnswer(
(_) async => successResponse(path, data: <String, dynamic>{}));