l-min-components 1.0.1211 → 1.0.1213

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "l-min-components",
3
- "version": "1.0.1211",
3
+ "version": "1.0.1213",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "src/assets",
@@ -465,8 +465,6 @@ const useMessageKit = (affiliatesActive, selectedAccount, affiliateAccount) => {
465
465
  // Assuming the API uses the latest message ID directly in the path as defined
466
466
  return await request({
467
467
  url: `/notify/v1/enterprise/chats/${latestMessageId}/read_message/`,
468
- method: "POST", // Typically marking read is a POST/PUT, assuming POST based on common practice
469
- // If the API expects GET or needs data differently, adjust here
470
468
  });
471
469
  };
472
470
 
@@ -751,9 +749,9 @@ const useMessageKit = (affiliatesActive, selectedAccount, affiliateAccount) => {
751
749
  };
752
750
  });
753
751
  }
754
- }, [lastJsonMessage, state.roomsByCourses]); // Also depend on roomsByCourses to re-check existence after refetch
752
+ }, [lastJsonMessage]); // Also depend on roomsByCourses to re-check existence after refetch
755
753
 
756
- console.log(state, "messages"); // Keep console log for debugging if needed
754
+ // console.log(state, "messages"); // Keep console log for debugging if needed
757
755
  // send messages to account based on account type
758
756
 
759
757
  // Return the state and potentially the functions if they need to be called externally