app-tutor-ai-consumer 1.27.0 → 1.27.1

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/CHANGELOG.md CHANGED
@@ -1,3 +1,9 @@
1
+ ## [1.27.1](https://github.com/Hotmart-Org/app-tutor-ai-consumer/compare/v1.27.0...v1.27.1) (2025-08-13)
2
+
3
+ ### Bug Fixes
4
+
5
+ - different conversation ids bug ([bec54b4](https://github.com/Hotmart-Org/app-tutor-ai-consumer/commit/bec54b484d54816d67fc2120763ddbeee3798caf))
6
+
1
7
  # [1.27.0](https://github.com/Hotmart-Org/app-tutor-ai-consumer/compare/v1.26.1...v1.27.0) (2025-08-13)
2
8
 
3
9
  ### Features
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "app-tutor-ai-consumer",
3
- "version": "1.27.0",
3
+ "version": "1.27.1",
4
4
  "main": "index.js",
5
5
  "scripts": {
6
6
  "dev": "rspack serve --env=development --config config/rspack/rspack.config.js",
@@ -34,6 +34,8 @@ const useSubscribeMessageReceivedEvent = () => {
34
34
 
35
35
  const messageReceived = useCallback(
36
36
  (data: IMessageWithSenderData) => {
37
+ if (data.conversationId !== conversationId) return
38
+
37
39
  const queryData = queryClient.getQueryData<InfiniteData<FetchMessagesResponse>>(
38
40
  messagesQueryConfig.queryKey
39
41
  )
@@ -66,6 +68,7 @@ const useSubscribeMessageReceivedEvent = () => {
66
68
  },
67
69
  [
68
70
  addUnreadMessagesToSet,
71
+ conversationId,
69
72
  messagesQueryConfig.queryKey,
70
73
  profileId,
71
74
  queryClient,