stream-chat-react 9.5.0 → 9.5.1

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.
@@ -42124,6 +42124,7 @@ var StreamChatReact = (function (exports, React, streamChat, reactDom) {
42124
42124
  });
42125
42125
  });
42126
42126
  };
42127
+ var clearHighlightedMessageTimeoutId = React.useRef(null);
42127
42128
  var jumpToMessage = function (messageId, messageLimit) {
42128
42129
  if (messageLimit === void 0) { messageLimit = 100; }
42129
42130
  return __awaiter$1(void 0, void 0, void 0, function () {
@@ -42143,7 +42144,11 @@ var StreamChatReact = (function (exports, React, streamChat, reactDom) {
42143
42144
  highlightedMessageId: messageId,
42144
42145
  type: 'jumpToMessageFinished',
42145
42146
  });
42146
- setTimeout(function () {
42147
+ if (clearHighlightedMessageTimeoutId.current) {
42148
+ clearTimeout(clearHighlightedMessageTimeoutId.current);
42149
+ }
42150
+ clearHighlightedMessageTimeoutId.current = setTimeout(function () {
42151
+ clearHighlightedMessageTimeoutId.current = null;
42147
42152
  dispatch({ type: 'clearHighlightedMessage' });
42148
42153
  }, 500);
42149
42154
  return [2 /*return*/];
@@ -43378,7 +43383,7 @@ var StreamChatReact = (function (exports, React, streamChat, reactDom) {
43378
43383
 
43379
43384
  window.StreamChat.StreamChat=StreamChat;window.StreamChat.logChatPromiseExecution=logChatPromiseExecution;window.StreamChat.Channel=Channel;window.ICAL=window.ICAL||{};
43380
43385
 
43381
- window.StreamChat.StreamChat=StreamChat;window.StreamChat.logChatPromiseExecution=logChatPromiseExecution;window.StreamChat.Channel=Channel;window.ICAL=window.ICAL||{};var version = '9.5.0';
43386
+ window.StreamChat.StreamChat=StreamChat;window.StreamChat.logChatPromiseExecution=logChatPromiseExecution;window.StreamChat.Channel=Channel;window.ICAL=window.ICAL||{};var version = '9.5.1';
43382
43387
 
43383
43388
  window.StreamChat.StreamChat=StreamChat;window.StreamChat.logChatPromiseExecution=logChatPromiseExecution;window.StreamChat.Channel=Channel;window.ICAL=window.ICAL||{};var useChat = function (_a) {
43384
43389
  var _b, _c;