Merge branch 'master' into fix-attachment-upload-state
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user