@zero-library/chat-agent 2.1.8 → 2.1.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.esm.js CHANGED
@@ -701,7 +701,7 @@ function createChatStore() {
701
701
  const switchAgentConversation = async (id, strategy) => {
702
702
  const agentId = String(id);
703
703
  await switchAgent(agentId);
704
- const conversationId = await resolveConversationId(agentId, strategy);
704
+ const conversationId = await resolveConversationId(receiver.active.id, strategy);
705
705
  if (conversationId) {
706
706
  await switchConversation(conversationId);
707
707
  }