@zero-library/chat-agent 2.3.1 → 2.3.3

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
@@ -819,9 +819,9 @@ function createChatStore() {
819
819
  conversation.messages[conversationId].questionList = data;
820
820
  };
821
821
  const getRecommendQuestions = async (conversationId) => {
822
- if (conversationId === conversation.active.id && conversation.active.member.agent?.id && !conversation.messages[conversationId].message.length) {
822
+ if (conversationId === conversation.active.id && conversation.active.member.agent?.memberId && !conversation.messages[conversationId].message.length) {
823
823
  try {
824
- const { data } = await config.services.request.recommendQuestionsQuery(conversation.active.member.agent.id, conversationId);
824
+ const { data } = await config.services.request.recommendQuestionsQuery(conversation.active.member.agent.memberId, conversationId);
825
825
  if (conversationId === conversation.active.id) {
826
826
  receiver.recommendQuestions = data;
827
827
  }
@@ -1580,7 +1580,7 @@ var BubbleListItems_default = ({
1580
1580
  ...args
1581
1581
  };
1582
1582
  });
1583
- }, [firstMessages]);
1583
+ }, [firstMessages, conversationRoles]);
1584
1584
  const bubbleListItems = useMemo(() => {
1585
1585
  const list = [];
1586
1586
  list.push(...firstMessagesRecord);