deleteChannel method

Future<void> deleteChannel()

Deletes this GroupChannel. Note that only operators of a channel are able to delete it or else, an error will be returned to the handler.

Implementation

Future<void> deleteChannel() async {
  sbLog.i(StackTrace.current);

  await chat.apiClient.send(GroupChannelDeleteRequest(chat, channelUrl));
  if (!isPublic) removeFromCache(chat);
}