From cfb7a6bb4010cb1995c53a983f1eba1e000bc9c6 Mon Sep 17 00:00:00 2001 From: 20120454 Date: Fri, 15 Dec 2023 16:24:05 +0700 Subject: [PATCH] from new chat to chat thread --- lib/presentation/new_chat/store/new_chat_store.dart | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/presentation/new_chat/store/new_chat_store.dart b/lib/presentation/new_chat/store/new_chat_store.dart index f387950..292da8c 100644 --- a/lib/presentation/new_chat/store/new_chat_store.dart +++ b/lib/presentation/new_chat/store/new_chat_store.dart @@ -75,6 +75,7 @@ abstract class _NewChatStore with Store { this.success = true; ChatStore _chatStore = getIt(); _chatStore.setChatThreads([..._chatStore.chatThreads, chatThread]); + _chatStore.setChatThreadId(chatThread.id); }).catchError((e) { print(e); this.success = false;