Skip to content

Commit af2d2fd

Browse files
committed
Merge branch 'develop' into V7
# Conflicts: # examples/SampleApp/src/screens/ChannelScreen.tsx # package/expo-package/package.json # package/native-package/package.json # package/src/components/Channel/Channel.tsx # package/src/components/Channel/hooks/useMessageListPagination.tsx # package/src/components/MessageList/MessageList.tsx # package/src/components/MessageList/hooks/useMessageList.ts # package/src/contexts/messageInputContext/MessageInputContext.tsx
2 parents ab7973f + 1cc008c commit af2d2fd

File tree

21 files changed

+804
-614
lines changed

21 files changed

+804
-614
lines changed

examples/SampleApp/CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
# Change Log
22

3+
### [2.5.2](https://github.com/GetStream/stream-chat-react-native/compare/sampleapp@v2.5.1...sampleapp@v2.5.2) (2025-04-22)
4+
5+
6+
### Performance Improvements
7+
8+
* message list performance ([#3060](https://github.com/GetStream/stream-chat-react-native/issues/3060)) ([8b2d7e3](https://github.com/GetStream/stream-chat-react-native/commit/8b2d7e31e57acd497726876b56b4350065bb3c2d))
9+
310
### [2.5.1](https://github.com/GetStream/stream-chat-react-native/compare/sampleapp@v2.5.0...sampleapp@v2.5.1) (2025-03-13)
411

512

examples/SampleApp/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "sampleapp",
3-
"version": "2.5.1",
3+
"version": "2.5.2",
44
"private": true,
55
"repository": {
66
"type": "git",

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
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/CHANGELOG.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,19 @@
11
# Change Log
22

3+
### [6.7.3](https://github.com/GetStream/stream-chat-react-native/compare/v6.7.2...v6.7.3) (2025-04-22)
4+
5+
6+
### Bug Fixes
7+
8+
* audio distortion on audio rate change ([#3056](https://github.com/GetStream/stream-chat-react-native/issues/3056)) ([2c84e8d](https://github.com/GetStream/stream-chat-react-native/commit/2c84e8d16e921487f3f44f26ffb845e3cdeea606))
9+
10+
11+
### Performance Improvements
12+
13+
* channel state updates ([#3055](https://github.com/GetStream/stream-chat-react-native/issues/3055)) ([6cca07d](https://github.com/GetStream/stream-chat-react-native/commit/6cca07d31dd44a3c8bfaa34a6af4231740a479bd))
14+
* message list and input perf fixes ([#3051](https://github.com/GetStream/stream-chat-react-native/issues/3051)) ([e787038](https://github.com/GetStream/stream-chat-react-native/commit/e787038f0b1420fcb5f7055ab005316c427ae2ce))
15+
* message list performance ([#3060](https://github.com/GetStream/stream-chat-react-native/issues/3060)) ([8b2d7e3](https://github.com/GetStream/stream-chat-react-native/commit/8b2d7e31e57acd497726876b56b4350065bb3c2d))
16+
317
### [6.7.2](https://github.com/GetStream/stream-chat-react-native/compare/v6.7.1...v6.7.2) (2025-04-09)
418

519

package/expo-package/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "stream-chat-expo",
33
"description": "The official Expo SDK for Stream Chat, a service for building chat applications",
4-
"version": "6.7.2",
4+
"version": "6.7.3",
55
"author": {
66
"company": "Stream.io Inc",
77
"name": "Stream.io Inc"

package/native-package/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "stream-chat-react-native",
33
"description": "The official React Native SDK for Stream Chat, a service for building chat applications",
4-
"version": "6.7.2",
4+
"version": "6.7.3",
55
"homepage": "https://www.npmjs.com/package/stream-chat-react-native",
66
"author": {
77
"company": "Stream.io Inc",

package/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "stream-chat-react-native-core",
33
"description": "The official React Native and Expo components for Stream Chat, a service for building chat applications",
4-
"version": "6.7.2",
4+
"version": "6.7.3",
55
"author": {
66
"company": "Stream.io Inc",
77
"name": "Stream.io Inc"

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
);

0 commit comments

Comments
 (0)