stream-chat-react 12.6.1 → 12.6.2
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.
|
@@ -27,8 +27,8 @@ export const useChat = ({ client, defaultLanguage = 'en', i18nInstance, initialN
|
|
|
27
27
|
const userAgent = client.getUserAgent();
|
|
28
28
|
if (!userAgent.includes('stream-chat-react')) {
|
|
29
29
|
// result looks like: 'stream-chat-react-2.3.2-stream-chat-javascript-client-browser-2.2.2'
|
|
30
|
-
//
|
|
31
|
-
client.setUserAgent(`stream-chat-react-
|
|
30
|
+
// the upper-case text between double underscores is replaced with the actual semantic version of the library
|
|
31
|
+
client.setUserAgent(`stream-chat-react-12.6.2-${userAgent}`);
|
|
32
32
|
}
|
|
33
33
|
client.threads.registerSubscriptions();
|
|
34
34
|
client.polls.registerSubscriptions();
|
package/dist/index.browser.cjs
CHANGED
|
@@ -49967,7 +49967,7 @@ var useChat = ({
|
|
|
49967
49967
|
if (!client) return;
|
|
49968
49968
|
const userAgent = client.getUserAgent();
|
|
49969
49969
|
if (!userAgent.includes("stream-chat-react")) {
|
|
49970
|
-
client.setUserAgent(`stream-chat-react-12.6.
|
|
49970
|
+
client.setUserAgent(`stream-chat-react-12.6.2-${userAgent}`);
|
|
49971
49971
|
}
|
|
49972
49972
|
client.threads.registerSubscriptions();
|
|
49973
49973
|
client.polls.registerSubscriptions();
|