Skip to content

Commit d981af0

Browse files
committed
Revert "Merge pull request #788 from GetStream/channel-concurrency-fix"
This reverts commit eab95f0, reversing changes made to 5fa9f29.
1 parent 7e740ac commit d981af0

File tree

15 files changed

+16
-50
lines changed

15 files changed

+16
-50
lines changed

docusaurus/docs/reactnative/basics/hello_stream_chat.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -425,7 +425,7 @@ export const App = () => {
425425
<OverlayProvider>
426426
<Chat client={client}>
427427
{channel ? (
428-
<Channel channel={channel} keyboardVerticalOffset={0} thread={thread} threadList={!!thread}>
428+
<Channel channel={channel} keyboardVerticalOffset={0} thread={thread}>
429429
{thread ? (
430430
<Thread />
431431
) : (
@@ -540,7 +540,7 @@ export const App = () => {
540540
<View style={{ flex: 1 }}>
541541
<Chat client={client}>
542542
{channel ? (
543-
<Channel channel={channel} keyboardVerticalOffset={60} thread={thread} threadList={!!thread}>
543+
<Channel channel={channel} keyboardVerticalOffset={60} thread={thread}>
544544
{thread ? (
545545
<Thread />
546546
) : (

docusaurus/docs/reactnative/basics/stream_chat_with_navigation.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ export const ThreadScreen = () => {
242242
const { setThread, thread } = useAppThread();
243243
244244
return (
245-
<Channel channel={channel} thread={thread} threadList>
245+
<Channel channel={channel} thread={thread}>
246246
<Thread onThreadDismount={() => setThread(undefined)} />
247247
</Channel>
248248
);

docusaurus/docs/reactnative/basics/troubleshooting.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ We suggest you keep track of a `thread` state on your own and provide it to any
3030

3131
```tsx {2}
3232
<Chat client={chatClient} i18nInstance={streami18n}>
33-
<Channel channel={channel} thread={thread} threadList>
33+
<Channel channel={channel} thread={thread}>
3434
<Thread onThreadDismount={() => setThread(null)} />
3535
</Channel>
3636
</Chat>
@@ -73,7 +73,7 @@ To do this make sure your `Channel` components are always aware of the thread st
7373
```
7474

7575
```tsx
76-
<Channel channel={channel} thread={thread} threadList>
76+
<Channel channel={channel} thread={thread}>
7777
<Thread onThreadDismount={() => setThread(null)} />
7878
</Channel>
7979
```

docusaurus/docs/reactnative/common-content/core-components/channel/props/thread_list.mdx

Lines changed: 0 additions & 6 deletions
This file was deleted.

docusaurus/docs/reactnative/core-components/channel.mdx

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,6 @@ import SendButton from '../common-content/core-components/channel/props/send_but
113113
import ShowThreadMessageInChannelButton from '../common-content/core-components/channel/props/show_thread_message_in_channel_button.mdx'
114114
import SupportedReactions from '../common-content/core-components/channel/props/supported_reactions.mdx';
115115
import Thread from '../common-content/core-components/channel/props/thread.mdx'
116-
import ThreadList from '../common-content/core-components/channel/props/thread_list.mdx';
117116
import ThreadRepliesEnabled from '../common-content/core-components/channel/props/thread_replies_enabled.mdx'
118117
import ThreadReply from '../common-content/core-components/channel/props/thread_reply.mdx';
119118
import TypingEventsEnabled from '../common-content/core-components/channel/props/typing_events_enabled.mdx'
@@ -678,10 +677,6 @@ Callback function to set the [ref](https://reactjs.org/docs/refs-and-the-dom.htm
678677

679678
<Thread />
680679

681-
### threadList
682-
683-
<ThreadList />
684-
685680
### threadReply
686681

687682
<ThreadReply />

docusaurus/docs/reactnative/ui-components/thread.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ Component to render thread replies for a message, along with and input box for a
1818
```tsx
1919
<OverlayProvider>
2020
<Chat client={client}>
21-
<Channel channel={channel} thread={messageId} threadList>
21+
<Channel channel={channel} thread={messageId}>
2222
<Thread />
2323
</Channel>
2424
</Chat>

examples/ExpoMessaging/App.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ const ThreadScreen = () => {
105105
return (
106106
<SafeAreaView>
107107
<Chat client={chatClient} i18nInstance={streami18n}>
108-
<Channel channel={channel} keyboardVerticalOffset={headerHeight} thread={thread} threadList>
108+
<Channel channel={channel} keyboardVerticalOffset={headerHeight} thread={thread}>
109109
<View
110110
style={{
111111
flex: 1,

examples/NativeMessaging/App.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ const ThreadScreen = () => {
104104
return (
105105
<SafeAreaView>
106106
<Chat client={chatClient} i18nInstance={streami18n}>
107-
<Channel channel={channel} keyboardVerticalOffset={headerHeight} thread={thread} threadList>
107+
<Channel channel={channel} keyboardVerticalOffset={headerHeight} thread={thread}>
108108
<View
109109
style={{
110110
flex: 1,

examples/SampleApp/src/screens/ThreadScreen.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,6 @@ export const ThreadScreen: React.FC<ThreadScreenProps> = ({
9393
enforceUniqueReaction
9494
keyboardVerticalOffset={0}
9595
thread={thread}
96-
threadList
9796
>
9897
<View style={styles.container}>
9998
<ThreadHeader thread={thread} />

examples/TypeScriptMessaging/App.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ const ThreadScreen: React.FC<ThreadScreenProps> = ({ navigation }) => {
172172
return (
173173
<SafeAreaView>
174174
<Chat client={chatClient} i18nInstance={streami18n}>
175-
<Channel channel={channel} keyboardVerticalOffset={headerHeight} thread={thread} threadList>
175+
<Channel channel={channel} keyboardVerticalOffset={headerHeight} thread={thread}>
176176
<View
177177
style={{
178178
flex: 1,

0 commit comments

Comments
 (0)