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
|
@@ -10020,13 +10020,18 @@ var MessagePaginator = class extends MessageIntervalPaginator {
|
|
|
10020
10020
|
/**
|
|
10021
10021
|
* A message the paginator does not hold yet, at or after {@link latestMessageAt} (as known before
|
|
10022
10022
|
* it arrives), while no loaded interval reaches the newest message. It is then the newest message,
|
|
10023
|
-
* so it starts the newest interval, as a page holding it would (see {@link pageReachesHead}).
|
|
10023
|
+
* so it starts the newest interval, as a page holding it would (see {@link pageReachesHead}). In a
|
|
10024
|
+
* channel whose newest page was loaded empty, with no newest message time known, any message is
|
|
10025
|
+
* the newest.
|
|
10024
10026
|
*/
|
|
10025
10027
|
isNewNewestMessage(message) {
|
|
10026
10028
|
if (this.anchoredHeadItem !== void 0 || this.getItem(message.id)) return false;
|
|
10027
10029
|
const latestMessageAt = this.latestMessageAt;
|
|
10030
|
+
if (latestMessageAt === null) {
|
|
10031
|
+
return this.items?.length === 0 && !this.hasMoreHead;
|
|
10032
|
+
}
|
|
10028
10033
|
const createdAt = getMessageCreatedAtTimestamp(message);
|
|
10029
|
-
return
|
|
10034
|
+
return createdAt !== null && createdAt >= latestMessageAt;
|
|
10030
10035
|
}
|
|
10031
10036
|
/**
|
|
10032
10037
|
* The logical-head items (ingested one by one, usually from events, rather than as part of a
|
|
@@ -25318,7 +25323,7 @@ var StreamChat = class _StreamChat extends ChatApi {
|
|
|
25318
25323
|
return this.userAgent;
|
|
25319
25324
|
}
|
|
25320
25325
|
if (!this.cachedUserAgent) {
|
|
25321
|
-
const version = "10.0.
|
|
25326
|
+
const version = "10.0.1";
|
|
25322
25327
|
const { name: sdkName, version: sdkVersion } = this.sdkIdentifier ?? {};
|
|
25323
25328
|
const { name: appName, version: appVersion } = this.appIdentifier ?? {};
|
|
25324
25329
|
const { os, model: deviceModel } = this.deviceIdentifier ?? {};
|