Skip to content

Commit 188ff5f

Browse files
authored
fix: revert SDK name update (#3580)
Reverts #3578 This has been resolved on our backend in the meantime and was unfortunately released here. So, reverting the change
1 parent 6139d9c commit 188ff5f

3 files changed

Lines changed: 9 additions & 10 deletions

File tree

package/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@
8282
"path": "0.12.7",
8383
"react-native-markdown-package": "1.8.2",
8484
"react-native-url-polyfill": "^2.0.0",
85-
"stream-chat": "^9.42.2",
85+
"stream-chat": "^9.41.1",
8686
"use-sync-external-store": "^1.5.0"
8787
},
8888
"peerDependencies": {

package/src/components/Chat/Chat.tsx

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import React, { PropsWithChildren, useEffect, useMemo, useState } from 'react';
22
import { Image, Platform } from 'react-native';
33

4-
import { Channel, OfflineDBState, SdkIdentifier } from 'stream-chat';
4+
import { Channel, OfflineDBState } from 'stream-chat';
55

66
import { useAppSettings } from './hooks/useAppSettings';
77
import { useCreateChatContext } from './hooks/useCreateChatContext';
@@ -181,10 +181,9 @@ const ChatWithContext = (props: PropsWithChildren<ChatProps>) => {
181181

182182
useEffect(() => {
183183
if (client) {
184-
const sdkName = (((NativeHandlers.SDK
185-
? NativeHandlers.SDK.replace('stream-chat-', '')
186-
: 'react-native') as 'react-native' | 'expo') +
187-
`-${Platform.OS as 'ios' | 'android'}`) as SdkIdentifier['name'];
184+
const sdkName = (
185+
NativeHandlers.SDK ? NativeHandlers.SDK.replace('stream-chat-', '') : 'react-native'
186+
) as 'react-native' | 'expo';
188187
client.sdkIdentifier = {
189188
name: sdkName,
190189
version,

package/yarn.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8335,10 +8335,10 @@ stdin-discarder@^0.2.2:
83358335
resolved "https://registry.yarnpkg.com/stdin-discarder/-/stdin-discarder-0.2.2.tgz#390037f44c4ae1a1ae535c5fe38dc3aba8d997be"
83368336
integrity sha512-UhDfHmA92YAlNnCfhmq0VeNL5bDbiZGg7sZ2IvPsXubGkiNa9EC+tUTsjBRsYUAz87btI6/1wf4XoVvQ3uRnmQ==
83378337

8338-
stream-chat@^9.42.2:
8339-
version "9.42.2"
8340-
resolved "https://registry.yarnpkg.com/stream-chat/-/stream-chat-9.42.2.tgz#036dc26c46bb9eeeb36270525b0b27316373e460"
8341-
integrity sha512-AIGVXdEb7WGczp/B+/FtImbe8o/9RcyahIZdLXnnVll0x3mGDz51raxyaPKUylbBluF02yaJk8Ia55CR1NXYHQ==
8338+
stream-chat@^9.41.1:
8339+
version "9.41.1"
8340+
resolved "https://registry.yarnpkg.com/stream-chat/-/stream-chat-9.41.1.tgz#a877c8aa800d78b497eec2fad636345d4422309c"
8341+
integrity sha512-W8zjfINYol2UtdRMz2t/NN2GyjDrvb4pJgKmhtuRYzCY1u0Cjezcsu5OCNgyAM0QsenlY6tRqnvAU8Qam5R49Q==
83428342
dependencies:
83438343
"@types/jsonwebtoken" "^9.0.8"
83448344
"@types/ws" "^8.5.14"

0 commit comments

Comments
 (0)