Merge pull request #603 from TomBeckett/patch-1
This commit is contained in:
@@ -1,3 +1,9 @@
|
|||||||
|
## Upcoming
|
||||||
|
|
||||||
|
🐞 Fixed
|
||||||
|
|
||||||
|
- Fixed `channel.markAllRead` throwing failed host lookup.
|
||||||
|
|
||||||
## 2.1.1
|
## 2.1.1
|
||||||
|
|
||||||
🐞 Fixed
|
🐞 Fixed
|
||||||
|
|||||||
@@ -84,7 +84,7 @@ class ChannelApi {
|
|||||||
|
|
||||||
/// Mark all channels for this user as read
|
/// Mark all channels for this user as read
|
||||||
Future<EmptyResponse> markAllRead() async {
|
Future<EmptyResponse> markAllRead() async {
|
||||||
final response = await _client.post('channels/read');
|
final response = await _client.post('/channels/read');
|
||||||
return EmptyResponse.fromJson(response.data);
|
return EmptyResponse.fromJson(response.data);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -176,7 +176,7 @@ void main() {
|
|||||||
});
|
});
|
||||||
|
|
||||||
test('markAllRead', () async {
|
test('markAllRead', () async {
|
||||||
const path = 'channels/read';
|
const path = '/channels/read';
|
||||||
when(() => client.post(path)).thenAnswer(
|
when(() => client.post(path)).thenAnswer(
|
||||||
(_) async => successResponse(path, data: <String, dynamic>{}));
|
(_) async => successResponse(path, data: <String, dynamic>{}));
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user