Merge branch 'master' into fix-attachment-upload-state

This commit is contained in:
Salvatore Giordano
2021-02-19 16:17:47 +01:00
committed by GitHub
4 changed files with 70 additions and 0 deletions
@@ -625,6 +625,13 @@ class Channel {
return _client.decode(response.data, UpdateChannelResponse.fromJson);
}
/// Edit the channel custom data
Future<PartialUpdateChannelResponse> updatePartial(
Map<String, dynamic> channelData) async {
final response = await _client.patch(_channelURL, data: channelData);
return _client.decode(response.data, PartialUpdateChannelResponse.fromJson);
}
/// Delete this channel. Messages are permanently removed.
Future<EmptyResponse> delete() async {
final response = await _client.delete(_channelURL);