delete method

Future<void> delete()

Implementation

Future<void> delete() async {
  Conversation? c = originalConversation ?? conversation;
  if (c == null) {
    return;
  }

  var id = c.id;
  if (id == null) {
    return;
  }

  await deleteThread(id);
  onDelete(id);
}