MCPcopy Create free account
hub / github.com/Serial-Studio/Serial-Studio / setLastActiveId

Method setLastActiveId

app/src/AI/ChatStore.cpp:132–139  ·  view source on GitHub ↗

* @brief Persists the active-chat pointer. */

Source from the content-addressed store, hash-verified

130 * @brief Persists the active-chat pointer.
131 */
132void AI::ChatStore::setLastActiveId(const QString& id)
133{
134 if (m_lastActive == id)
135 return;
136
137 m_lastActive = id;
138 writeIndex();
139}
140
141/**
142 * @brief Creates a new untitled chat and returns its id.

Callers 4

newChatMethod · 0.80
switchChatMethod · 0.80
deleteChatMethod · 0.80
initChatsMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected