Skip to content

Commit 2d33c95

Browse files
authored
Merge pull request #3062 from GetStream/develop
Next Release
2 parents ba72973 + 2c84e8d commit 2d33c95

File tree

25 files changed

+1730
-1981
lines changed

25 files changed

+1730
-1981
lines changed

examples/SampleApp/src/screens/ChannelScreen.tsx

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import React, { useEffect, useState } from 'react';
1+
import React, { useCallback, useEffect, useState } from 'react';
22
import type { Channel as StreamChatChannel } from 'stream-chat';
33
import { RouteProp, useFocusEffect, useNavigation } from '@react-navigation/native';
44
import {
@@ -142,6 +142,14 @@ export const ChannelScreen: React.FC<ChannelScreenProps> = ({
142142
setSelectedThread(undefined);
143143
});
144144

145+
const onThreadSelect = useCallback((thread) => {
146+
setSelectedThread(thread);
147+
navigation.navigate('ThreadScreen', {
148+
channel,
149+
thread,
150+
});
151+
}, [channel, navigation]);
152+
145153
if (!channel || !chatClient) {
146154
return null;
147155
}
@@ -161,13 +169,7 @@ export const ChannelScreen: React.FC<ChannelScreenProps> = ({
161169
>
162170
<ChannelHeader channel={channel} />
163171
<MessageList<StreamChatGenerics>
164-
onThreadSelect={(thread) => {
165-
setSelectedThread(thread);
166-
navigation.navigate('ThreadScreen', {
167-
channel,
168-
thread,
169-
});
170-
}}
172+
onThreadSelect={onThreadSelect}
171173
/>
172174
<AITypingIndicatorView channel={channel} />
173175
<MessageInput />

package/expo-package/yarn.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4733,10 +4733,10 @@ stream-buffers@2.2.x, stream-buffers@~2.2.0:
47334733
resolved "https://registry.yarnpkg.com/stream-buffers/-/stream-buffers-2.2.0.tgz#91d5f5130d1cef96dcfa7f726945188741d09ee4"
47344734
integrity sha512-uyQK/mx5QjHun80FLJTfaWE7JtwfRMKBLkMne6udYOmvH0CawotVa7TfgYHzAnpphn4+TweIx1QKMnRIbipmUg==
47354735

4736-
stream-chat-react-native-core@6.7.1:
4737-
version "6.7.1"
4738-
resolved "https://registry.yarnpkg.com/stream-chat-react-native-core/-/stream-chat-react-native-core-6.7.1.tgz#37cdfbc5c7f8a5bac5634b954da4bbdcd2fb95f2"
4739-
integrity sha512-4ePEMt1W+iw3zUulSDRFO9Nt4HPa8kW6wJ3Qv+ZN+y886rvcUuTuH18MFrdrJtHYb+UxCU+X3oz++3qzq7Jzxw==
4736+
stream-chat-react-native-core@6.7.2:
4737+
version "6.7.2"
4738+
resolved "https://registry.yarnpkg.com/stream-chat-react-native-core/-/stream-chat-react-native-core-6.7.2.tgz#955e048b80c55175db084ccbb8519f52ef4bb00c"
4739+
integrity sha512-WJFOCfQ7Xpn8Lr4AE6hUh4Qhrn1eGzsoAcKmL8eSoB/etxdNllOyZ3zrwvZgyy+KIEg9bcX4y+3OWtdKW6qfsA==
47404740
dependencies:
47414741
"@gorhom/bottom-sheet" "^5.1.1"
47424742
dayjs "1.10.5"

package/native-package/yarn.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3409,10 +3409,10 @@ statuses@~1.5.0:
34093409
resolved "https://registry.yarnpkg.com/statuses/-/statuses-1.5.0.tgz#161c7dac177659fd9811f43771fa99381478628c"
34103410
integrity sha512-OpZ3zP+jT1PI7I8nemJX4AKmAX070ZkYPVWV/AaKTJl+tXCTGyVdC1a4SL8RUQYEwk/f34ZX8UTykN68FwrqAA==
34113411

3412-
stream-chat-react-native-core@6.7.1:
3413-
version "6.7.1"
3414-
resolved "https://registry.yarnpkg.com/stream-chat-react-native-core/-/stream-chat-react-native-core-6.7.1.tgz#37cdfbc5c7f8a5bac5634b954da4bbdcd2fb95f2"
3415-
integrity sha512-4ePEMt1W+iw3zUulSDRFO9Nt4HPa8kW6wJ3Qv+ZN+y886rvcUuTuH18MFrdrJtHYb+UxCU+X3oz++3qzq7Jzxw==
3412+
stream-chat-react-native-core@6.7.2:
3413+
version "6.7.2"
3414+
resolved "https://registry.yarnpkg.com/stream-chat-react-native-core/-/stream-chat-react-native-core-6.7.2.tgz#955e048b80c55175db084ccbb8519f52ef4bb00c"
3415+
integrity sha512-WJFOCfQ7Xpn8Lr4AE6hUh4Qhrn1eGzsoAcKmL8eSoB/etxdNllOyZ3zrwvZgyy+KIEg9bcX4y+3OWtdKW6qfsA==
34163416
dependencies:
34173417
"@gorhom/bottom-sheet" "^5.1.1"
34183418
dayjs "1.10.5"

package/src/components/Attachment/AudioAttachment.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,9 @@ export const AudioAttachment = (props: AudioAttachmentProps) => {
184184
soundRef.current = await NativeHandlers.Sound.initializeSound(
185185
{ uri: item.file.uri },
186186
{
187+
pitchCorrectionQuality: 'high',
187188
progressUpdateIntervalMillis: 100,
189+
shouldCorrectPitch: true,
188190
},
189191
onPlaybackStatusUpdate,
190192
);

package/src/components/AutoCompleteInput/AutoCompleteInput.tsx

Lines changed: 17 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,6 @@ import { I18nManager, StyleSheet, TextInput, TextInputProps } from 'react-native
33

44
import throttle from 'lodash/throttle';
55

6-
import {
7-
ChannelContextValue,
8-
useChannelContext,
9-
} from '../../contexts/channelContext/ChannelContext';
106
import {
117
MessageInputContextValue,
128
useMessageInputContext,
@@ -53,22 +49,22 @@ const isCommand = (text: string) => text[0] === '/' && text.split(' ').length <=
5349

5450
type AutoCompleteInputPropsWithContext<
5551
StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics,
56-
> = Pick<ChannelContextValue<StreamChatGenerics>, 'giphyEnabled'> &
57-
Pick<
58-
MessageInputContextValue<StreamChatGenerics>,
59-
| 'additionalTextInputProps'
60-
| 'autoCompleteSuggestionsLimit'
61-
| 'giphyActive'
62-
| 'maxMessageLength'
63-
| 'mentionAllAppUsersEnabled'
64-
| 'mentionAllAppUsersQuery'
65-
| 'numberOfLines'
66-
| 'onChange'
67-
| 'setGiphyActive'
68-
| 'setInputBoxRef'
69-
| 'text'
70-
| 'triggerSettings'
71-
> &
52+
> = Pick<
53+
MessageInputContextValue<StreamChatGenerics>,
54+
| 'additionalTextInputProps'
55+
| 'autoCompleteSuggestionsLimit'
56+
| 'giphyActive'
57+
| 'giphyEnabled'
58+
| 'maxMessageLength'
59+
| 'mentionAllAppUsersEnabled'
60+
| 'mentionAllAppUsersQuery'
61+
| 'numberOfLines'
62+
| 'onChange'
63+
| 'setGiphyActive'
64+
| 'setInputBoxRef'
65+
| 'text'
66+
| 'triggerSettings'
67+
> &
7268
Pick<
7369
SuggestionsContextValue<StreamChatGenerics>,
7470
'closeSuggestions' | 'openSuggestions' | 'updateSuggestions'
@@ -484,8 +480,8 @@ export const AutoCompleteInput = <
484480
>(
485481
props: AutoCompleteInputProps<StreamChatGenerics>,
486482
) => {
487-
const { giphyEnabled } = useChannelContext<StreamChatGenerics>();
488483
const {
484+
giphyEnabled,
489485
additionalTextInputProps,
490486
autoCompleteSuggestionsLimit,
491487
giphyActive,

0 commit comments

Comments
 (0)