@zero-library/chat-agent 2.3.1 → 2.3.2

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
@@ -827,9 +827,9 @@ function createChatStore() {
827
827
  conversation.messages[conversationId].questionList = data;
828
828
  };
829
829
  const getRecommendQuestions = async (conversationId) => {
830
- if (conversationId === conversation.active.id && conversation.active.member.agent?.id && !conversation.messages[conversationId].message.length) {
830
+ if (conversationId === conversation.active.id && conversation.active.member.agent?.memberId && !conversation.messages[conversationId].message.length) {
831
831
  try {
832
- const { data } = await config.services.request.recommendQuestionsQuery(conversation.active.member.agent.id, conversationId);
832
+ const { data } = await config.services.request.recommendQuestionsQuery(conversation.active.member.agent.memberId, conversationId);
833
833
  if (conversationId === conversation.active.id) {
834
834
  receiver.recommendQuestions = data;
835
835
  }
@@ -1588,7 +1588,7 @@ var BubbleListItems_default = ({
1588
1588
  ...args
1589
1589
  };
1590
1590
  });
1591
- }, [firstMessages]);
1591
+ }, [firstMessages, conversationRoles]);
1592
1592
  const bubbleListItems = react.useMemo(() => {
1593
1593
  const list = [];
1594
1594
  list.push(...firstMessagesRecord);