deleteChannel method

Future<void> deleteChannel()

Deletes an OpenChannel. 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(OpenChannelDeleteRequest(chat, channelUrl));
  removeFromCache(chat);
}