@zero-library/chat-agent 2.1.15 → 2.1.16

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
@@ -825,9 +825,9 @@ function createChatStore() {
825
825
  conversationId
826
826
  });
827
827
  conversation.messages[conversationId].message = data.items;
828
- config.hooks?.onAfterInitMessages?.(conversation.messages[conversationId].message);
829
- config.hooks?.onAfterInit?.();
830
828
  }
829
+ config.hooks?.onAfterInitMessages?.(conversation.messages[conversationId].message);
830
+ config.hooks?.onAfterInit?.();
831
831
  };
832
832
  const pickReceiver = () => {
833
833
  const { agent, other } = conversation.active.member;