sceyt-chat-react-uikit 1.8.5-beta.4 → 1.8.5-beta.5
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 +4 -2
- package/index.modern.js +4 -2
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -44526,7 +44526,7 @@ function useChatController(_ref3) {
|
|
|
44526
44526
|
return function () {
|
|
44527
44527
|
return el.removeEventListener('scroll', onScroll);
|
|
44528
44528
|
};
|
|
44529
|
-
}, []);
|
|
44529
|
+
}, [channel === null || channel === void 0 ? void 0 : channel.id]);
|
|
44530
44530
|
React.useEffect(function () {
|
|
44531
44531
|
var el = scrollRef.current;
|
|
44532
44532
|
if (!el) {
|
|
@@ -44546,7 +44546,7 @@ function useChatController(_ref3) {
|
|
|
44546
44546
|
return function () {
|
|
44547
44547
|
return el.removeEventListener('wheel', onWheel);
|
|
44548
44548
|
};
|
|
44549
|
-
}, []);
|
|
44549
|
+
}, [channel === null || channel === void 0 ? void 0 : channel.id]);
|
|
44550
44550
|
React.useEffect(function () {
|
|
44551
44551
|
var _pendingWindowLoadRef, _pendingEdgeLoadRefs$, _pendingEdgeLoadRefs$2;
|
|
44552
44552
|
if (activeChannelIdRef.current === null) {
|
|
@@ -44580,6 +44580,8 @@ function useChatController(_ref3) {
|
|
|
44580
44580
|
clearTimeout(jumpUnlockTimeoutRef.current);
|
|
44581
44581
|
jumpUnlockTimeoutRef.current = null;
|
|
44582
44582
|
}
|
|
44583
|
+
isJumping.current = false;
|
|
44584
|
+
currentJumpIdRef.current += 1;
|
|
44583
44585
|
activeChannelIdRef.current = channel.id;
|
|
44584
44586
|
lastBootKeyRef.current = null;
|
|
44585
44587
|
restoreRef.current = null;
|
package/index.modern.js
CHANGED
|
@@ -44525,7 +44525,7 @@ function useChatController(_ref3) {
|
|
|
44525
44525
|
return function () {
|
|
44526
44526
|
return el.removeEventListener('scroll', onScroll);
|
|
44527
44527
|
};
|
|
44528
|
-
}, []);
|
|
44528
|
+
}, [channel === null || channel === void 0 ? void 0 : channel.id]);
|
|
44529
44529
|
useEffect(function () {
|
|
44530
44530
|
var el = scrollRef.current;
|
|
44531
44531
|
if (!el) {
|
|
@@ -44545,7 +44545,7 @@ function useChatController(_ref3) {
|
|
|
44545
44545
|
return function () {
|
|
44546
44546
|
return el.removeEventListener('wheel', onWheel);
|
|
44547
44547
|
};
|
|
44548
|
-
}, []);
|
|
44548
|
+
}, [channel === null || channel === void 0 ? void 0 : channel.id]);
|
|
44549
44549
|
useEffect(function () {
|
|
44550
44550
|
var _pendingWindowLoadRef, _pendingEdgeLoadRefs$, _pendingEdgeLoadRefs$2;
|
|
44551
44551
|
if (activeChannelIdRef.current === null) {
|
|
@@ -44579,6 +44579,8 @@ function useChatController(_ref3) {
|
|
|
44579
44579
|
clearTimeout(jumpUnlockTimeoutRef.current);
|
|
44580
44580
|
jumpUnlockTimeoutRef.current = null;
|
|
44581
44581
|
}
|
|
44582
|
+
isJumping.current = false;
|
|
44583
|
+
currentJumpIdRef.current += 1;
|
|
44582
44584
|
activeChannelIdRef.current = channel.id;
|
|
44583
44585
|
lastBootKeyRef.current = null;
|
|
44584
44586
|
restoreRef.current = null;
|