updateChannel method

Future<GroupChannel> updateChannel(
  1. GroupChannelUpdateParams params,
  2. {ProgressHandler? progressHandler}
)

Update this channel with GroupChannelUpdateParams.

Implementation

Future<GroupChannel> updateChannel(
  GroupChannelUpdateParams params, {
  ProgressHandler? progressHandler,
}) async {
  sbLog.i(StackTrace.current, 'params.name: ${params.name}');

  return await chat.apiClient.send<GroupChannel>(GroupChannelUpdateRequest(
    chat,
    channelUrl,
    params,
    progressHandler: progressHandler,
  ));
}