@connectedxm/client 1.0.19 → 1.0.20

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.js CHANGED
@@ -10368,14 +10368,25 @@ var SelfCreateActivity = async ({
10368
10368
  data.data
10369
10369
  );
10370
10370
  }
10371
- if (data.data.content) {
10371
+ if (activity.contentId && data.data.content) {
10372
10372
  nested = true;
10373
+ AppendInfiniteQuery(
10374
+ queryClient,
10375
+ [
10376
+ ...CHANNEL_CONTENT_ACTIVITIES_QUERY_KEY(
10377
+ data.data.content.channel.slug,
10378
+ activity.contentId
10379
+ ),
10380
+ ...GetBaseInfiniteQueryKeys(clientApiParams.locale)
10381
+ ],
10382
+ data.data
10383
+ );
10373
10384
  AppendInfiniteQuery(
10374
10385
  queryClient,
10375
10386
  [
10376
10387
  ...CHANNEL_CONTENT_ACTIVITIES_QUERY_KEY(
10377
10388
  data.data.content.channel.id,
10378
- data.data.content.id
10389
+ activity.contentId
10379
10390
  ),
10380
10391
  ...GetBaseInfiniteQueryKeys(clientApiParams.locale)
10381
10392
  ],
package/dist/index.mjs CHANGED
@@ -9407,14 +9407,25 @@ var SelfCreateActivity = async ({
9407
9407
  data.data
9408
9408
  );
9409
9409
  }
9410
- if (data.data.content) {
9410
+ if (activity.contentId && data.data.content) {
9411
9411
  nested = true;
9412
+ AppendInfiniteQuery(
9413
+ queryClient,
9414
+ [
9415
+ ...CHANNEL_CONTENT_ACTIVITIES_QUERY_KEY(
9416
+ data.data.content.channel.slug,
9417
+ activity.contentId
9418
+ ),
9419
+ ...GetBaseInfiniteQueryKeys(clientApiParams.locale)
9420
+ ],
9421
+ data.data
9422
+ );
9412
9423
  AppendInfiniteQuery(
9413
9424
  queryClient,
9414
9425
  [
9415
9426
  ...CHANNEL_CONTENT_ACTIVITIES_QUERY_KEY(
9416
9427
  data.data.content.channel.id,
9417
- data.data.content.id
9428
+ activity.contentId
9418
9429
  ),
9419
9430
  ...GetBaseInfiniteQueryKeys(clientApiParams.locale)
9420
9431
  ],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@connectedxm/client",
3
- "version": "1.0.19",
3
+ "version": "1.0.20",
4
4
  "description": "Client API javascript SDK",
5
5
  "author": "ConnectedXM Inc.",
6
6
  "repository": {