@poolse/react 2.24.0 → 2.25.0

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.cjs CHANGED
@@ -1026,8 +1026,6 @@ function useUser(externalId) {
1026
1026
  }, [chat, externalId]);
1027
1027
  return state;
1028
1028
  }
1029
-
1030
- // src/grouping.ts
1031
1029
  function computeGroupPosition(msg, prev, next, windowMs) {
1032
1030
  const continuesPrev = sameGroup(msg, prev, windowMs);
1033
1031
  const continuesNext = sameGroup(next, msg, windowMs);
@@ -1038,6 +1036,7 @@ function computeGroupPosition(msg, prev, next, windowMs) {
1038
1036
  }
1039
1037
  function sameGroup(a, b, windowMs) {
1040
1038
  if (!a || !b) return false;
1039
+ if (sdk.isCallLogMessage(a) || sdk.isCallLogMessage(b)) return false;
1041
1040
  if (a.sender_id !== b.sender_id) return false;
1042
1041
  if (!sameDay(a.inserted_at, b.inserted_at)) return false;
1043
1042
  const ta = new Date(a.inserted_at).getTime();
@@ -1635,6 +1634,38 @@ Object.defineProperty(exports, "RateLimitedError", {
1635
1634
  enumerable: true,
1636
1635
  get: function () { return sdk.RateLimitedError; }
1637
1636
  });
1637
+ Object.defineProperty(exports, "callLogDisplayFor", {
1638
+ enumerable: true,
1639
+ get: function () { return sdk.callLogDisplayFor; }
1640
+ });
1641
+ Object.defineProperty(exports, "describeCallLog", {
1642
+ enumerable: true,
1643
+ get: function () { return sdk.describeCallLog; }
1644
+ });
1645
+ Object.defineProperty(exports, "formatCallDuration", {
1646
+ enumerable: true,
1647
+ get: function () { return sdk.formatCallDuration; }
1648
+ });
1649
+ Object.defineProperty(exports, "formatCallLogPreview", {
1650
+ enumerable: true,
1651
+ get: function () { return sdk.formatCallLogPreview; }
1652
+ });
1653
+ Object.defineProperty(exports, "isCallLogMessage", {
1654
+ enumerable: true,
1655
+ get: function () { return sdk.isCallLogMessage; }
1656
+ });
1657
+ Object.defineProperty(exports, "isMessageVisibleTo", {
1658
+ enumerable: true,
1659
+ get: function () { return sdk.isMessageVisibleTo; }
1660
+ });
1661
+ Object.defineProperty(exports, "parseCallLog", {
1662
+ enumerable: true,
1663
+ get: function () { return sdk.parseCallLog; }
1664
+ });
1665
+ Object.defineProperty(exports, "parseCallLogBody", {
1666
+ enumerable: true,
1667
+ get: function () { return sdk.parseCallLogBody; }
1668
+ });
1638
1669
  exports.PoolseProvider = PoolseProvider;
1639
1670
  exports.computeGroupPosition = computeGroupPosition;
1640
1671
  exports.formatDayLabel = formatDayLabel;