stream-chat-react-native-core 5.39.2-beta.2 → 5.39.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/commonjs/components/Channel/Channel.js +25 -7
- package/lib/commonjs/components/Channel/Channel.js.map +1 -1
- package/lib/commonjs/version.json +1 -1
- package/lib/module/components/Channel/Channel.js +25 -7
- package/lib/module/components/Channel/Channel.js.map +1 -1
- package/lib/module/version.json +1 -1
- package/lib/typescript/components/Channel/Channel.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/components/Channel/Channel.tsx +8 -0
- package/src/version.json +1 -1
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "stream-chat-react-native-core",
|
|
3
3
|
"description": "The official React Native and Expo components for Stream Chat, a service for building chat applications",
|
|
4
|
-
"version": "5.39.2
|
|
4
|
+
"version": "5.39.2",
|
|
5
5
|
"author": {
|
|
6
6
|
"company": "Stream.io Inc",
|
|
7
7
|
"name": "Stream.io Inc"
|
|
@@ -674,6 +674,14 @@ const ChannelWithContext = <
|
|
|
674
674
|
) {
|
|
675
675
|
loadChannelAtFirstUnreadMessage();
|
|
676
676
|
}
|
|
677
|
+
// If the messageId is undefined and the last message and the current message id do not match we load the channel at the very bottom.
|
|
678
|
+
else if (
|
|
679
|
+
channel.state.messages?.[channel.state.messages.length - 1]?.id !==
|
|
680
|
+
channel.state.latestMessages?.[channel.state.latestMessages.length - 1]?.id &&
|
|
681
|
+
!messageId
|
|
682
|
+
) {
|
|
683
|
+
await loadChannel();
|
|
684
|
+
}
|
|
677
685
|
};
|
|
678
686
|
|
|
679
687
|
initChannel();
|
package/src/version.json
CHANGED