We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3657538 commit 6db7e72Copy full SHA for 6db7e72
package/src/components/Chat/Chat.tsx
@@ -187,7 +187,11 @@ const ChatWithContext = <
187
188
useEffect(() => {
189
if (client) {
190
- client.setUserAgent(`${SDK}-${Platform.OS}-${version}`);
+ client.sdkIdentifier = {
191
+ name: SDK.replace('stream-chat-', '') as 'react-native' | 'expo',
192
+ version,
193
+ };
194
+ client.deviceIdentifier = { os: `${Platform.OS} ${Platform.Version}` };
195
// This is to disable recovery related logic in js client, since we handle it in this SDK
196
client.recoverStateOnReconnect = false;
197
client.persistUserOnConnectionFailure = enableOfflineSupport;
0 commit comments