Allow creation of new chat while no model selected

This commit is contained in:
JHubi1 2024-06-09 12:53:04 +02:00
parent 16eed64c83
commit ebba5b82e6
No known key found for this signature in database
GPG Key ID: 7BF82570CBBBD050
1 changed files with 1 additions and 1 deletions

View File

@ -229,7 +229,7 @@ class _MainAppState extends State<MainApp> {
MediaQuery.of(context).size.width <= 1000) { MediaQuery.of(context).size.width <= 1000) {
Navigator.of(context).pop(); Navigator.of(context).pop();
} }
if (!chatAllowed) return; if (!chatAllowed && model != null) return;
chatUuid = null; chatUuid = null;
messages = []; messages = [];
setState(() {}); setState(() {});