@stream-io/feeds-client 0.2.17 → 0.2.18

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.
Files changed (63) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/dist/cjs/index.js +1 -1
  3. package/dist/cjs/react-bindings.js +1 -1
  4. package/dist/es/index.mjs +2 -2
  5. package/dist/es/react-bindings.mjs +1 -1
  6. package/dist/{index-nq6SDtbt.js → index--koeDtxd.js} +147 -56
  7. package/dist/index--koeDtxd.js.map +1 -0
  8. package/dist/{index-BZL77zNq.mjs → index-Zde8UE5f.mjs} +147 -56
  9. package/dist/index-Zde8UE5f.mjs.map +1 -0
  10. package/dist/tsconfig.tsbuildinfo +1 -1
  11. package/dist/types/common/real-time/StableWSConnection.d.ts +3 -3
  12. package/dist/types/feed/event-handlers/activity/handle-activity-added.d.ts +4 -3
  13. package/dist/types/feed/event-handlers/activity/handle-activity-added.d.ts.map +1 -1
  14. package/dist/types/feed/event-handlers/activity/handle-activity-updated.d.ts.map +1 -1
  15. package/dist/types/feed/event-handlers/activity-updater.d.ts +44 -0
  16. package/dist/types/feed/event-handlers/activity-updater.d.ts.map +1 -0
  17. package/dist/types/feed/event-handlers/add-aggregated-activities-to-state.d.ts +6 -0
  18. package/dist/types/feed/event-handlers/add-aggregated-activities-to-state.d.ts.map +1 -0
  19. package/dist/types/feed/event-handlers/index.d.ts +3 -1
  20. package/dist/types/feed/event-handlers/index.d.ts.map +1 -1
  21. package/dist/types/feed/event-handlers/{aggregated-feed/handle-aggregated-feed-updated.d.ts → notification-feed/handle-notification-feed-updated.d.ts} +2 -11
  22. package/dist/types/feed/event-handlers/notification-feed/handle-notification-feed-updated.d.ts.map +1 -0
  23. package/dist/types/feed/event-handlers/notification-feed/index.d.ts +2 -0
  24. package/dist/types/feed/event-handlers/notification-feed/index.d.ts.map +1 -0
  25. package/dist/types/feed/event-handlers/story-feeds/handle-story-feeds-updated.d.ts +15 -0
  26. package/dist/types/feed/event-handlers/story-feeds/handle-story-feeds-updated.d.ts.map +1 -0
  27. package/dist/types/feed/event-handlers/story-feeds/index.d.ts +2 -0
  28. package/dist/types/feed/event-handlers/story-feeds/index.d.ts.map +1 -0
  29. package/dist/types/feed/feed.d.ts +9 -3
  30. package/dist/types/feed/feed.d.ts.map +1 -1
  31. package/dist/types/feeds-client/feeds-client.d.ts +5 -3
  32. package/dist/types/feeds-client/feeds-client.d.ts.map +1 -1
  33. package/dist/types/gen/feeds/FeedsApi.d.ts.map +1 -1
  34. package/dist/types/gen/models/index.d.ts +42 -451
  35. package/dist/types/gen/models/index.d.ts.map +1 -1
  36. package/package.json +1 -1
  37. package/src/feed/event-handlers/activity/handle-activity-added.test.ts +16 -5
  38. package/src/feed/event-handlers/activity/handle-activity-added.ts +9 -11
  39. package/src/feed/event-handlers/activity/handle-activity-updated.ts +8 -16
  40. package/src/feed/event-handlers/activity-updater.ts +15 -0
  41. package/src/feed/event-handlers/add-aggregated-activities-to-state.test.ts +510 -0
  42. package/src/feed/event-handlers/add-aggregated-activities-to-state.ts +72 -0
  43. package/src/feed/event-handlers/index.ts +3 -1
  44. package/src/feed/event-handlers/notification-feed/handle-notification-feed-updated.test.ts +182 -0
  45. package/src/feed/event-handlers/{aggregated-feed/handle-aggregated-feed-updated.ts → notification-feed/handle-notification-feed-updated.ts} +2 -94
  46. package/src/feed/event-handlers/notification-feed/index.ts +1 -0
  47. package/src/feed/event-handlers/story-feeds/handle-story-feeds-updated.test.ts +45 -0
  48. package/src/feed/event-handlers/story-feeds/handle-story-feeds-updated.ts +122 -0
  49. package/src/feed/event-handlers/story-feeds/index.ts +1 -0
  50. package/src/feed/feed.ts +12 -0
  51. package/src/feeds-client/feeds-client.ts +21 -3
  52. package/src/gen/feeds/FeedsApi.ts +5 -0
  53. package/src/gen/model-decoders/decoders.ts +10 -4
  54. package/src/gen/models/index.ts +75 -834
  55. package/src/test-utils/response-generators.ts +37 -1
  56. package/dist/index-BZL77zNq.mjs.map +0 -1
  57. package/dist/index-nq6SDtbt.js.map +0 -1
  58. package/dist/types/feed/event-handlers/aggregated-feed/handle-aggregated-feed-updated.d.ts.map +0 -1
  59. package/dist/types/feed/event-handlers/aggregated-feed/index.d.ts +0 -2
  60. package/dist/types/feed/event-handlers/aggregated-feed/index.d.ts.map +0 -1
  61. package/src/feed/event-handlers/activity/activity-utils.test.ts +0 -252
  62. package/src/feed/event-handlers/aggregated-feed/handle-aggregated-feed-updated.test.ts +0 -644
  63. package/src/feed/event-handlers/aggregated-feed/index.ts +0 -1
package/CHANGELOG.md CHANGED
@@ -2,6 +2,14 @@
2
2
 
3
3
  This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).
4
4
 
5
+ ## [0.2.18](https://github.com/GetStream/stream-feeds-js/compare/@stream-io/feeds-client-0.2.17...@stream-io/feeds-client-0.2.18) (2025-10-14)
6
+
7
+
8
+ ### Bug Fixes
9
+
10
+ * notification status not updated in some cases, reenable notifica… ([#136](https://github.com/GetStream/stream-feeds-js/issues/136)) ([367e34d](https://github.com/GetStream/stream-feeds-js/commit/367e34d2e1446a605986bdb389dbbe1dbe08bd40))
11
+ * story use-case fixes ([#137](https://github.com/GetStream/stream-feeds-js/issues/137)) ([bfe2a6f](https://github.com/GetStream/stream-feeds-js/commit/bfe2a6f7a83a785245a34a6c72e572cecd29c340))
12
+
5
13
  ## [0.2.17](https://github.com/GetStream/stream-feeds-js/compare/@stream-io/feeds-client-0.2.16...@stream-io/feeds-client-0.2.17) (2025-10-09)
6
14
 
7
15
 
package/dist/cjs/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
3
  const stateStore = require("@stream-io/state-store");
4
- const index = require("../index-nq6SDtbt.js");
4
+ const index = require("../index--koeDtxd.js");
5
5
  const loggerInternal = require("@stream-io/logger");
6
6
  class SearchController {
7
7
  constructor({ config, sources } = {}) {
@@ -2,7 +2,7 @@
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
3
  const require$$0 = require("react");
4
4
  require("@stream-io/state-store");
5
- const index = require("../index-nq6SDtbt.js");
5
+ const index = require("../index--koeDtxd.js");
6
6
  require("@stream-io/logger");
7
7
  require("axios");
8
8
  var shim = { exports: {} };
package/dist/es/index.mjs CHANGED
@@ -1,7 +1,7 @@
1
1
  import { StateStore } from "@stream-io/state-store";
2
2
  export * from "@stream-io/state-store";
3
- import { d as debounce } from "../index-BZL77zNq.mjs";
4
- import { C, f, a, b, F, S, c, e, o, q, p, m, j, g, k, h, l, i, r, s, u, n } from "../index-BZL77zNq.mjs";
3
+ import { d as debounce } from "../index-Zde8UE5f.mjs";
4
+ import { C, f, a, b, F, S, c, e, o, q, p, m, j, g, k, h, l, i, r, s, u, n } from "../index-Zde8UE5f.mjs";
5
5
  import { LogLevelEnum, restoreDefaults } from "@stream-io/logger";
6
6
  class SearchController {
7
7
  constructor({ config, sources } = {}) {
@@ -1,6 +1,6 @@
1
1
  import require$$0, { useCallback, useMemo, useState, useEffect, createContext, useContext, useRef } from "react";
2
2
  import "@stream-io/state-store";
3
- import { F as FeedsClient, j as isCommentResponse, e as checkHasAnotherPage, b as FeedOwnCapability } from "../index-BZL77zNq.mjs";
3
+ import { F as FeedsClient, j as isCommentResponse, e as checkHasAnotherPage, b as FeedOwnCapability } from "../index-Zde8UE5f.mjs";
4
4
  import "@stream-io/logger";
5
5
  import "axios";
6
6
  var shim = { exports: {} };
@@ -889,8 +889,9 @@ decoders.MessageResponse = (input) => {
889
889
  decoders.ModerationCustomActionEvent = (input) => {
890
890
  const typeMappings = {
891
891
  created_at: { type: "DatetimeType", isSingle: true },
892
- message: { type: "Message", isSingle: true },
893
- user: { type: "User", isSingle: true }
892
+ review_queue_item: { type: "ReviewQueueItemResponse", isSingle: true },
893
+ received_at: { type: "DatetimeType", isSingle: true },
894
+ message: { type: "MessageResponse", isSingle: true }
894
895
  };
895
896
  return decode(typeMappings, input);
896
897
  };
@@ -913,8 +914,9 @@ decoders.ModerationFlaggedEvent = (input) => {
913
914
  decoders.ModerationMarkReviewedEvent = (input) => {
914
915
  const typeMappings = {
915
916
  created_at: { type: "DatetimeType", isSingle: true },
916
- message: { type: "Message", isSingle: true },
917
- user: { type: "User", isSingle: true }
917
+ item: { type: "ReviewQueueItemResponse", isSingle: true },
918
+ received_at: { type: "DatetimeType", isSingle: true },
919
+ message: { type: "MessageResponse", isSingle: true }
918
920
  };
919
921
  return decode(typeMappings, input);
920
922
  };
@@ -1268,6 +1270,7 @@ decoders.StoriesFeedUpdatedEvent = (input) => {
1268
1270
  const typeMappings = {
1269
1271
  created_at: { type: "DatetimeType", isSingle: true },
1270
1272
  received_at: { type: "DatetimeType", isSingle: true },
1273
+ activities: { type: "ActivityResponse", isSingle: false },
1271
1274
  aggregated_activities: {
1272
1275
  type: "AggregatedActivityResponse",
1273
1276
  isSingle: false
@@ -1489,6 +1492,8 @@ class FeedsApi {
1489
1492
  const body = {
1490
1493
  name: request?.name,
1491
1494
  words: request?.words,
1495
+ is_leet_check_enabled: request?.is_leet_check_enabled,
1496
+ is_plural_check_enabled: request?.is_plural_check_enabled,
1492
1497
  team: request?.team,
1493
1498
  type: request?.type
1494
1499
  };
@@ -1524,6 +1529,8 @@ class FeedsApi {
1524
1529
  name: request?.name
1525
1530
  };
1526
1531
  const body = {
1532
+ is_leet_check_enabled: request?.is_leet_check_enabled,
1533
+ is_plural_check_enabled: request?.is_plural_check_enabled,
1527
1534
  team: request?.team,
1528
1535
  words: request?.words
1529
1536
  };
@@ -1720,7 +1727,8 @@ class FeedsApi {
1720
1727
  mute_user: request?.mute_user,
1721
1728
  reason: request?.reason,
1722
1729
  report: request?.report,
1723
- show_less: request?.show_less
1730
+ show_less: request?.show_less,
1731
+ show_more: request?.show_more
1724
1732
  };
1725
1733
  const response = await this.apiClient.sendRequest(
1726
1734
  "POST",
@@ -3740,7 +3748,7 @@ const getRateLimitFromResponseHeader = (response_headers) => {
3740
3748
  };
3741
3749
  return result;
3742
3750
  };
3743
- const version = "0.2.17";
3751
+ const version = "0.2.18";
3744
3752
  class ApiClient {
3745
3753
  constructor(apiKey, tokenManager, connectionIdManager, options) {
3746
3754
  this.apiKey = apiKey;
@@ -5306,19 +5314,16 @@ function handleBookmarkUpdated(event) {
5306
5314
  }
5307
5315
  }
5308
5316
  function addActivitiesToState(newActivities, activities, position) {
5309
- let result;
5310
5317
  if (activities === void 0) {
5311
- activities = [];
5312
- result = {
5313
- changed: true,
5314
- activities
5315
- };
5316
- } else {
5317
- result = {
5318
+ return {
5318
5319
  changed: false,
5319
- activities
5320
+ activities: []
5320
5321
  };
5321
5322
  }
5323
+ let result = {
5324
+ changed: false,
5325
+ activities
5326
+ };
5322
5327
  const newActivitiesDeduplicated = [];
5323
5328
  newActivities.forEach((newActivityResponse) => {
5324
5329
  if (!this.hasActivity(newActivityResponse.id)) {
@@ -5340,7 +5345,7 @@ function handleActivityAdded(event) {
5340
5345
  const result = addActivitiesToState.bind(this)(
5341
5346
  [event.activity],
5342
5347
  currentActivities,
5343
- "start"
5348
+ this.currentState.addNewActivitiesTo
5344
5349
  );
5345
5350
  if (result.changed) {
5346
5351
  this.client.hydratePollCache([event.activity]);
@@ -5396,22 +5401,23 @@ function handleActivityRemovedFromFeed(event) {
5396
5401
  }
5397
5402
  }
5398
5403
  }
5399
- const sharedUpdateActivity$3 = ({
5404
+ const updateActivity = ({
5400
5405
  currentActivity,
5401
- event
5406
+ newActivtiy
5402
5407
  }) => {
5403
5408
  return {
5404
- ...event.activity,
5409
+ ...newActivtiy,
5405
5410
  own_reactions: currentActivity.own_reactions,
5406
5411
  own_bookmarks: currentActivity.own_bookmarks
5407
5412
  };
5408
5413
  };
5414
+ const sharedUpdateActivity$3 = updateActivity;
5409
5415
  const updateActivityInState = (event, activities) => updateEntityInArray({
5410
5416
  entities: activities,
5411
5417
  matcher: (activity) => activity.id === event.activity.id,
5412
5418
  updater: (matchedActivity) => sharedUpdateActivity$3({
5413
5419
  currentActivity: matchedActivity,
5414
- event
5420
+ newActivtiy: event.activity
5415
5421
  })
5416
5422
  });
5417
5423
  const updatePinnedActivityInState = (event, pinnedActivities) => updateEntityInArray({
@@ -5420,7 +5426,7 @@ const updatePinnedActivityInState = (event, pinnedActivities) => updateEntityInA
5420
5426
  updater: (matchedPinnedActivity) => {
5421
5427
  const newActivity = sharedUpdateActivity$3({
5422
5428
  currentActivity: matchedPinnedActivity.activity,
5423
- event
5429
+ newActivtiy: event.activity
5424
5430
  });
5425
5431
  if (newActivity === matchedPinnedActivity.activity) {
5426
5432
  return matchedPinnedActivity;
@@ -5765,36 +5771,55 @@ const addAggregatedActivitiesToState = (newAggregatedActivities, aggregatedActiv
5765
5771
  if (newAggregatedActivities.length === 0) {
5766
5772
  result = {
5767
5773
  changed: false,
5768
- aggregated_activities: []
5774
+ aggregated_activities: aggregatedActivities ?? []
5769
5775
  };
5770
5776
  } else {
5771
5777
  result = {
5772
5778
  changed: true,
5773
5779
  aggregated_activities: []
5774
5780
  };
5775
- }
5776
- switch (position) {
5777
- case "start":
5778
- result.aggregated_activities = uniqueArrayMerge(
5779
- newAggregatedActivities,
5780
- aggregatedActivities ?? [],
5781
- (a) => a.group
5782
- );
5783
- break;
5784
- case "end":
5785
- result.aggregated_activities = uniqueArrayMerge(
5786
- aggregatedActivities ?? [],
5787
- newAggregatedActivities,
5788
- (a) => a.group
5781
+ newAggregatedActivities.forEach((newAggregatedActivity) => {
5782
+ const existingAggregatedActivity = aggregatedActivities?.find(
5783
+ (a) => a.group === newAggregatedActivity.group
5789
5784
  );
5790
- break;
5791
- case "replace":
5792
- result.aggregated_activities = replaceUniqueArrayMerge(
5793
- aggregatedActivities ?? [],
5794
- newAggregatedActivities,
5795
- (a) => a.group
5796
- );
5797
- break;
5785
+ if (existingAggregatedActivity) {
5786
+ for (let i = 0; i < newAggregatedActivity.activities.length; i++) {
5787
+ const activity = newAggregatedActivity.activities[i];
5788
+ const existingActivity = existingAggregatedActivity.activities.find(
5789
+ (a) => a.id === activity.id
5790
+ );
5791
+ if (existingActivity) {
5792
+ newAggregatedActivity.activities[i] = updateActivity({
5793
+ currentActivity: existingActivity,
5794
+ newActivtiy: activity
5795
+ });
5796
+ }
5797
+ }
5798
+ }
5799
+ });
5800
+ switch (position) {
5801
+ case "start":
5802
+ result.aggregated_activities = uniqueArrayMerge(
5803
+ newAggregatedActivities,
5804
+ aggregatedActivities ?? [],
5805
+ (a) => a.group
5806
+ );
5807
+ break;
5808
+ case "end":
5809
+ result.aggregated_activities = uniqueArrayMerge(
5810
+ aggregatedActivities ?? [],
5811
+ newAggregatedActivities,
5812
+ (a) => a.group
5813
+ );
5814
+ break;
5815
+ case "replace":
5816
+ result.aggregated_activities = replaceUniqueArrayMerge(
5817
+ aggregatedActivities ?? [],
5818
+ newAggregatedActivities,
5819
+ (a) => a.group
5820
+ );
5821
+ break;
5822
+ }
5798
5823
  }
5799
5824
  return result;
5800
5825
  };
@@ -5820,7 +5845,7 @@ const updateNotificationStatus = (newNotificationStatus, currentNotificationStat
5820
5845
  };
5821
5846
  const updateNotificationFeedFromEvent = (event, currentAggregatedActivities, currentNotificationStatus) => {
5822
5847
  const updates = {};
5823
- if (event.notification_status && currentNotificationStatus) {
5848
+ if (event.notification_status) {
5824
5849
  const notificationStatusResult = updateNotificationStatus(
5825
5850
  event.notification_status,
5826
5851
  currentNotificationStatus
@@ -5862,18 +5887,65 @@ function handleNotificationFeedUpdated(event) {
5862
5887
  });
5863
5888
  }
5864
5889
  }
5865
- function updateStoriesFeedFromEvent(aggregatedActivities, event) {
5866
- if (!aggregatedActivities) {
5890
+ const updateActivities = (activitiesToUpsert, currentActivities) => {
5891
+ if (!activitiesToUpsert || activitiesToUpsert.length === 0 || !currentActivities) {
5892
+ return {
5893
+ changed: false,
5894
+ activities: currentActivities ?? []
5895
+ };
5896
+ }
5897
+ const result = [];
5898
+ for (let i = 0; i < currentActivities.length; i++) {
5899
+ const activity = currentActivities[i];
5900
+ const updatedActivity = activitiesToUpsert.find(
5901
+ (a) => a.id === activity.id
5902
+ );
5903
+ if (updatedActivity) {
5904
+ result.push(
5905
+ updateActivity({
5906
+ currentActivity: activity,
5907
+ newActivtiy: updatedActivity
5908
+ })
5909
+ );
5910
+ } else {
5911
+ result.push(activity);
5912
+ }
5913
+ }
5914
+ return {
5915
+ changed: true,
5916
+ activities: result
5917
+ };
5918
+ };
5919
+ function updateStoriesFeedFromEvent(aggregatedActivities, activities, event) {
5920
+ if (!aggregatedActivities && event.aggregated_activities && event.aggregated_activities?.length > 0 || !activities && event.activities && event.activities?.length > 0) {
5867
5921
  return {
5868
5922
  changed: false
5869
5923
  };
5870
5924
  }
5925
+ const result = {
5926
+ changed: true,
5927
+ data: {
5928
+ aggregated_activities: aggregatedActivities,
5929
+ activities
5930
+ }
5931
+ };
5871
5932
  if (event.aggregated_activities) {
5872
- const result = addAggregatedActivitiesToState(
5933
+ const aggregatedActivitiesResult = addAggregatedActivitiesToState(
5873
5934
  event.aggregated_activities,
5874
5935
  aggregatedActivities,
5875
5936
  "replace"
5876
5937
  );
5938
+ if (aggregatedActivitiesResult.changed) {
5939
+ result.data.aggregated_activities = aggregatedActivitiesResult.aggregated_activities;
5940
+ }
5941
+ }
5942
+ if (event.activities) {
5943
+ const activitiesResult = updateActivities(event.activities, activities);
5944
+ if (activitiesResult.changed) {
5945
+ result.data.activities = activitiesResult.activities;
5946
+ }
5947
+ }
5948
+ if (event.aggregated_activities || event.activities) {
5877
5949
  return result;
5878
5950
  }
5879
5951
  return {
@@ -5883,11 +5955,13 @@ function updateStoriesFeedFromEvent(aggregatedActivities, event) {
5883
5955
  function handleStoriesFeedUpdated(event) {
5884
5956
  const result = updateStoriesFeedFromEvent(
5885
5957
  this.currentState.aggregated_activities,
5958
+ this.currentState.activities,
5886
5959
  event
5887
5960
  );
5888
5961
  if (result.changed) {
5889
5962
  this.state.partialNext({
5890
- aggregated_activities: result.data?.aggregated_activities
5963
+ aggregated_activities: result.data?.aggregated_activities,
5964
+ activities: result.data?.activities
5891
5965
  });
5892
5966
  }
5893
5967
  }
@@ -5898,7 +5972,7 @@ function handleWatchStopped() {
5898
5972
  this.state.partialNext({ watch: false });
5899
5973
  }
5900
5974
  const _Feed = class _Feed extends FeedApi {
5901
- constructor(client, groupId, id, data, watch = false) {
5975
+ constructor(client, groupId, id, data, watch = false, addNewActivitiesTo = "start") {
5902
5976
  super(client, groupId, id);
5903
5977
  this.indexedActivityIds = /* @__PURE__ */ new Set();
5904
5978
  this.stateUpdateQueue = /* @__PURE__ */ new Set();
@@ -5966,7 +6040,8 @@ const _Feed = class _Feed extends FeedApi {
5966
6040
  is_loading: false,
5967
6041
  is_loading_activities: false,
5968
6042
  comments_by_entity_id: {},
5969
- watch
6043
+ watch,
6044
+ addNewActivitiesTo
5970
6045
  });
5971
6046
  this.client = client;
5972
6047
  this.state.subscribeWithSelector(
@@ -5987,6 +6062,9 @@ const _Feed = class _Feed extends FeedApi {
5987
6062
  get currentState() {
5988
6063
  return this.state.getLatestValue();
5989
6064
  }
6065
+ set addNewActivitiesTo(value) {
6066
+ this.state.partialNext({ addNewActivitiesTo: value });
6067
+ }
5990
6068
  hasActivity(activityId) {
5991
6069
  return this.indexedActivityIds.has(activityId);
5992
6070
  }
@@ -6693,8 +6771,14 @@ class FeedsClient extends FeedsApi {
6693
6771
  };
6694
6772
  this.on = this.eventDispatcher.on;
6695
6773
  this.off = this.eventDispatcher.off;
6696
- this.feed = (groupId, id) => {
6697
- return this.getOrCreateActiveFeed(groupId, id);
6774
+ this.feed = (groupId, id, options2) => {
6775
+ return this.getOrCreateActiveFeed(
6776
+ groupId,
6777
+ id,
6778
+ void 0,
6779
+ void 0,
6780
+ options2?.addNewActivitiesTo
6781
+ );
6698
6782
  };
6699
6783
  this.updateNetworkConnectionStatus = (event) => {
6700
6784
  const networkEvent = {
@@ -6703,10 +6787,17 @@ class FeedsClient extends FeedsApi {
6703
6787
  };
6704
6788
  this.eventDispatcher.dispatch(networkEvent);
6705
6789
  };
6706
- this.getOrCreateActiveFeed = (group, id, data, watch) => {
6790
+ this.getOrCreateActiveFeed = (group, id, data, watch, addNewActivitiesTo) => {
6707
6791
  const fid = `${group}:${id}`;
6708
6792
  if (!this.activeFeeds[fid]) {
6709
- this.activeFeeds[fid] = new Feed(this, group, id, data, watch);
6793
+ this.activeFeeds[fid] = new Feed(
6794
+ this,
6795
+ group,
6796
+ id,
6797
+ data,
6798
+ watch,
6799
+ addNewActivitiesTo
6800
+ );
6710
6801
  }
6711
6802
  const feed = this.activeFeeds[fid];
6712
6803
  if (!feed.currentState.watch) {
@@ -7019,4 +7110,4 @@ exports.replaceUniqueArrayMerge = replaceUniqueArrayMerge;
7019
7110
  exports.shouldUpdateState = shouldUpdateState;
7020
7111
  exports.uniqueArrayMerge = uniqueArrayMerge;
7021
7112
  exports.updateEntityInArray = updateEntityInArray;
7022
- //# sourceMappingURL=index-nq6SDtbt.js.map
7113
+ //# sourceMappingURL=index--koeDtxd.js.map