From ebba5b82e678746dbf312b0ec8e0f30b09caa8aa Mon Sep 17 00:00:00 2001 From: JHubi1 Date: Sun, 9 Jun 2024 12:53:04 +0200 Subject: [PATCH] Allow creation of new chat while no model selected --- lib/main.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/main.dart b/lib/main.dart index 0da1c26..5f2191b 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -229,7 +229,7 @@ class _MainAppState extends State { MediaQuery.of(context).size.width <= 1000) { Navigator.of(context).pop(); } - if (!chatAllowed) return; + if (!chatAllowed && model != null) return; chatUuid = null; messages = []; setState(() {});