stream-chat-react-native-core 5.22.2-beta.3 → 5.22.2-beta.4
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 +11 -11
- package/lib/commonjs/components/Channel/Channel.js.map +1 -1
- package/lib/commonjs/components/MessageList/MessageList.js +26 -27
- package/lib/commonjs/components/MessageList/MessageList.js.map +1 -1
- package/lib/commonjs/i18n/fr.json +9 -9
- package/lib/commonjs/i18n/hi.json +9 -9
- package/lib/commonjs/i18n/it.json +9 -9
- package/lib/commonjs/i18n/nl.json +9 -9
- package/lib/commonjs/i18n/ru.json +9 -9
- package/lib/commonjs/i18n/tr.json +9 -9
- package/lib/commonjs/version.json +1 -1
- package/lib/module/components/Channel/Channel.js +11 -11
- package/lib/module/components/Channel/Channel.js.map +1 -1
- package/lib/module/components/MessageList/MessageList.js +26 -27
- package/lib/module/components/MessageList/MessageList.js.map +1 -1
- package/lib/module/i18n/fr.json +9 -9
- package/lib/module/i18n/hi.json +9 -9
- package/lib/module/i18n/it.json +9 -9
- package/lib/module/i18n/nl.json +9 -9
- package/lib/module/i18n/ru.json +9 -9
- package/lib/module/i18n/tr.json +9 -9
- package/lib/module/version.json +1 -1
- package/lib/typescript/i18n/fr.json +9 -9
- package/lib/typescript/i18n/hi.json +9 -9
- package/lib/typescript/i18n/it.json +9 -9
- package/lib/typescript/i18n/nl.json +9 -9
- package/lib/typescript/i18n/ru.json +9 -9
- package/lib/typescript/i18n/tr.json +9 -9
- package/package.json +1 -1
- package/src/components/Channel/Channel.tsx +3 -3
- package/src/components/MessageList/MessageList.tsx +9 -8
- package/src/i18n/fr.json +9 -9
- package/src/i18n/hi.json +9 -9
- package/src/i18n/it.json +9 -9
- package/src/i18n/nl.json +9 -9
- package/src/i18n/ru.json +9 -9
- package/src/i18n/tr.json +9 -9
- package/src/version.json +1 -1
|
@@ -670,27 +670,27 @@ var ChannelWithContext = function ChannelWithContext(props) {
|
|
|
670
670
|
var loadChannelAroundMessage = function loadChannelAroundMessage(_ref3) {
|
|
671
671
|
var messageIdToLoadAround = _ref3.messageId;
|
|
672
672
|
return channelQueryCallRef.current((0, _asyncToGenerator2["default"])(_regenerator["default"].mark(function _callee3() {
|
|
673
|
+
var areLatestMessages;
|
|
673
674
|
return _regenerator["default"].wrap(function _callee3$(_context3) {
|
|
674
675
|
while (1) switch (_context3.prev = _context3.next) {
|
|
675
676
|
case 0:
|
|
676
677
|
setLoading(true);
|
|
677
678
|
if (!messageIdToLoadAround) {
|
|
678
|
-
_context3.next =
|
|
679
|
+
_context3.next = 6;
|
|
679
680
|
break;
|
|
680
681
|
}
|
|
681
|
-
|
|
682
|
-
channel.state.setIsUpToDate(false);
|
|
683
|
-
_context3.next = 6;
|
|
682
|
+
_context3.next = 4;
|
|
684
683
|
return channel.state.loadMessageIntoState(messageIdToLoadAround);
|
|
685
|
-
case
|
|
686
|
-
_context3.next =
|
|
684
|
+
case 4:
|
|
685
|
+
_context3.next = 8;
|
|
687
686
|
break;
|
|
688
|
-
case
|
|
689
|
-
_context3.next =
|
|
687
|
+
case 6:
|
|
688
|
+
_context3.next = 8;
|
|
690
689
|
return channel.state.loadMessageIntoState('latest');
|
|
691
|
-
case
|
|
692
|
-
channel.state.
|
|
693
|
-
|
|
690
|
+
case 8:
|
|
691
|
+
areLatestMessages = channel.state.messages === channel.state.latestMessages;
|
|
692
|
+
setHasNoMoreRecentMessagesToLoad(areLatestMessages);
|
|
693
|
+
channel.state.setIsUpToDate(areLatestMessages);
|
|
694
694
|
setLoading(false);
|
|
695
695
|
case 12:
|
|
696
696
|
case "end":
|