@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.cjs.js CHANGED
@@ -708,7 +708,7 @@ function createChatStore() {
708
708
  const switchAgentConversation = async (id, strategy) => {
709
709
  const agentId = String(id);
710
710
  await switchAgent(agentId);
711
- const conversationId = await resolveConversationId(agentId, strategy);
711
+ const conversationId = await resolveConversationId(receiver.active.id, strategy);
712
712
  if (conversationId) {
713
713
  await switchConversation(conversationId);
714
714
  }