sceyt-chat-react-uikit 1.8.7-beta.2 → 1.8.7-beta.3

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/index.js CHANGED
@@ -45657,7 +45657,7 @@ function useChatController(_ref5) {
45657
45657
  var latestLocalRef = getMessageLocalRef(channel.lastMessage);
45658
45658
  var latestVisibleMessages = Object.values(getVisibleMessagesMap());
45659
45659
  var isLatestInView = latestVisibleMessages.find(function (m) {
45660
- return m.sortKey === latestLocalRef;
45660
+ return m.sortKey === latestLocalRef || m.localRef === latestLocalRef;
45661
45661
  });
45662
45662
  var shouldShow = !isLatestInView || !isViewingLatest && (pendingNewestCount > 0 || !!scrollToMentionedMessage);
45663
45663
  if (showScrollToNewMessageButton !== shouldShow) {
package/index.modern.js CHANGED
@@ -45656,7 +45656,7 @@ function useChatController(_ref5) {
45656
45656
  var latestLocalRef = getMessageLocalRef(channel.lastMessage);
45657
45657
  var latestVisibleMessages = Object.values(getVisibleMessagesMap());
45658
45658
  var isLatestInView = latestVisibleMessages.find(function (m) {
45659
- return m.sortKey === latestLocalRef;
45659
+ return m.sortKey === latestLocalRef || m.localRef === latestLocalRef;
45660
45660
  });
45661
45661
  var shouldShow = !isLatestInView || !isViewingLatest && (pendingNewestCount > 0 || !!scrollToMentionedMessage);
45662
45662
  if (showScrollToNewMessageButton !== shouldShow) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sceyt-chat-react-uikit",
3
- "version": "1.8.7-beta.2",
3
+ "version": "1.8.7-beta.3",
4
4
  "description": "Interactive React UI Components for Sceyt Chat.",
5
5
  "author": "Sceyt",
6
6
  "license": "MIT",