delete method
Implementation
Future<void> delete() async {
Conversation? c = conversation;
var id = c?.id;
if (id == null) {
VitGptFlutterConfiguration.logger
.w('Unabled to delete conversation without an id');
return;
}
await deleteThread(id);
onDelete(id);
conversation = null;
notifyListeners();
}