stream-chat-react 13.13.4 → 13.13.5
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.node.cjs
CHANGED
|
@@ -30511,6 +30511,7 @@ var useMarkRead = ({
|
|
|
30511
30511
|
const { markRead, setChannelUnreadUiState } = useChannelActionContext("useMarkRead");
|
|
30512
30512
|
const { channel } = useChannelStateContext("useMarkRead");
|
|
30513
30513
|
(0, import_react173.useEffect)(() => {
|
|
30514
|
+
if (!channel.getConfig()?.read_events) return;
|
|
30514
30515
|
const shouldMarkRead = () => !document.hidden && !wasMarkedUnread && !messageListIsThread && isMessageListScrolledToBottom && client.user?.id && !hasReadLastMessage(channel, client.user.id);
|
|
30515
30516
|
const onVisibilityChange = () => {
|
|
30516
30517
|
if (shouldMarkRead()) markRead();
|
|
@@ -39288,7 +39289,7 @@ var useChat = ({
|
|
|
39288
39289
|
};
|
|
39289
39290
|
(0, import_react289.useEffect)(() => {
|
|
39290
39291
|
if (!client) return;
|
|
39291
|
-
const version = "13.13.
|
|
39292
|
+
const version = "13.13.5";
|
|
39292
39293
|
const userAgent = client.getUserAgent();
|
|
39293
39294
|
if (!userAgent.includes("stream-chat-react")) {
|
|
39294
39295
|
client.setUserAgent(`stream-chat-react-${version}-${userAgent}`);
|