* @brief Persists the active chat, then releases owned resources. */
| 88 | * @brief Persists the active chat, then releases owned resources. |
| 89 | */ |
| 90 | AI::Assistant::~Assistant() |
| 91 | { |
| 92 | if (m_conversation && !m_activeChatId.isEmpty()) |
| 93 | m_chats.saveChat(m_activeChatId, |
| 94 | m_conversation->snapshot(), |
| 95 | m_conversation->firstUserText().left(kTitleLimit), |
| 96 | m_conversation->messageCount()); |
| 97 | } |
| 98 | |
| 99 | //-------------------------------------------------------------------------------------------------- |
| 100 | // Property getters |
nothing calls this directly
no test coverage detected