stream-chat 10.0.0 → 10.0.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/dist/cjs/index.browser.js +8 -3
- package/dist/cjs/index.browser.js.map +2 -2
- package/dist/cjs/index.node.js +8 -3
- package/dist/cjs/index.node.js.map +2 -2
- package/dist/esm/index.mjs +8 -3
- package/dist/esm/index.mjs.map +2 -2
- package/dist/types/pagination/paginators/MessagePaginator.d.ts +3 -1
- package/package.json +1 -1
- package/src/pagination/paginators/MessagePaginator.ts +7 -2
package/dist/esm/index.mjs
CHANGED
|
@@ -9743,13 +9743,18 @@ var MessagePaginator = class extends MessageIntervalPaginator {
|
|
|
9743
9743
|
/**
|
|
9744
9744
|
* A message the paginator does not hold yet, at or after {@link latestMessageAt} (as known before
|
|
9745
9745
|
* it arrives), while no loaded interval reaches the newest message. It is then the newest message,
|
|
9746
|
-
* so it starts the newest interval, as a page holding it would (see {@link pageReachesHead}).
|
|
9746
|
+
* so it starts the newest interval, as a page holding it would (see {@link pageReachesHead}). In a
|
|
9747
|
+
* channel whose newest page was loaded empty, with no newest message time known, any message is
|
|
9748
|
+
* the newest.
|
|
9747
9749
|
*/
|
|
9748
9750
|
isNewNewestMessage(message) {
|
|
9749
9751
|
if (this.anchoredHeadItem !== void 0 || this.getItem(message.id)) return false;
|
|
9750
9752
|
const latestMessageAt = this.latestMessageAt;
|
|
9753
|
+
if (latestMessageAt === null) {
|
|
9754
|
+
return this.items?.length === 0 && !this.hasMoreHead;
|
|
9755
|
+
}
|
|
9751
9756
|
const createdAt = getMessageCreatedAtTimestamp(message);
|
|
9752
|
-
return
|
|
9757
|
+
return createdAt !== null && createdAt >= latestMessageAt;
|
|
9753
9758
|
}
|
|
9754
9759
|
/**
|
|
9755
9760
|
* The logical-head items (ingested one by one, usually from events, rather than as part of a
|
|
@@ -25041,7 +25046,7 @@ var StreamChat = class _StreamChat extends ChatApi {
|
|
|
25041
25046
|
return this.userAgent;
|
|
25042
25047
|
}
|
|
25043
25048
|
if (!this.cachedUserAgent) {
|
|
25044
|
-
const version = "10.0.
|
|
25049
|
+
const version = "10.0.1";
|
|
25045
25050
|
const { name: sdkName, version: sdkVersion } = this.sdkIdentifier ?? {};
|
|
25046
25051
|
const { name: appName, version: appVersion } = this.appIdentifier ?? {};
|
|
25047
25052
|
const { os, model: deviceModel } = this.deviceIdentifier ?? {};
|