Future<bool> deleteThread(String threadId) async { final result = await _repository.deleteThread(threadId); return result.fold( (l) => false, (r) => true, ); }