sceyt-chat-react-uikit 1.8.0-beta.15 → 1.8.0-beta.16
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 +1 -5
- package/index.modern.js +1 -5
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -31262,7 +31262,6 @@ var SliderPopup = function SliderPopup(_ref) {
|
|
|
31262
31262
|
}
|
|
31263
31263
|
}, []);
|
|
31264
31264
|
var loadNextMoreAttachments = React.useCallback(function () {
|
|
31265
|
-
debugger;
|
|
31266
31265
|
if (activeFileIndex > attachmentsList.length - 5 && attachmentLoadingStateForPopup === LOADING_STATE.LOADED && attachmentsForPopupHasNext) {
|
|
31267
31266
|
dispatch(loadMoreAttachmentsAC(34, queryDirection.NEXT, attachmentsList[attachmentsList.length - 1].id, true));
|
|
31268
31267
|
}
|
|
@@ -31272,9 +31271,6 @@ var SliderPopup = function SliderPopup(_ref) {
|
|
|
31272
31271
|
dispatch(loadMoreAttachmentsAC(34, queryDirection.PREV, attachmentsList[0].id, true));
|
|
31273
31272
|
}
|
|
31274
31273
|
}, [activeFileIndex, attachmentLoadingStateForPopup, attachmentsForPopupHasPrev, attachmentsList, dispatch]);
|
|
31275
|
-
console.log('attachmentsForPopupHasNext', attachmentsForPopupHasNext);
|
|
31276
|
-
console.log('attachmentsForPopupHasPrev', attachmentsForPopupHasPrev);
|
|
31277
|
-
console.log('attachmentsList', attachmentsList);
|
|
31278
31274
|
return /*#__PURE__*/React__default.createElement(Container$b, {
|
|
31279
31275
|
draggable: false
|
|
31280
31276
|
}, /*#__PURE__*/React__default.createElement(SliderHeader, null, /*#__PURE__*/React__default.createElement(FileInfo, null, /*#__PURE__*/React__default.createElement(Avatar, {
|
|
@@ -50608,7 +50604,7 @@ var Details = function Details(_ref) {
|
|
|
50608
50604
|
dispatch(loadMoreMembersAC(15, activeChannel.id));
|
|
50609
50605
|
}
|
|
50610
50606
|
} else if (attachmentLoadingState === LOADING_STATE.LOADED && attachmentsHasNex) {
|
|
50611
|
-
dispatch(loadMoreAttachmentsAC(20));
|
|
50607
|
+
dispatch(loadMoreAttachmentsAC(20, queryDirection.PREV));
|
|
50612
50608
|
}
|
|
50613
50609
|
}
|
|
50614
50610
|
};
|
package/index.modern.js
CHANGED
|
@@ -31261,7 +31261,6 @@ var SliderPopup = function SliderPopup(_ref) {
|
|
|
31261
31261
|
}
|
|
31262
31262
|
}, []);
|
|
31263
31263
|
var loadNextMoreAttachments = useCallback(function () {
|
|
31264
|
-
debugger;
|
|
31265
31264
|
if (activeFileIndex > attachmentsList.length - 5 && attachmentLoadingStateForPopup === LOADING_STATE.LOADED && attachmentsForPopupHasNext) {
|
|
31266
31265
|
dispatch(loadMoreAttachmentsAC(34, queryDirection.NEXT, attachmentsList[attachmentsList.length - 1].id, true));
|
|
31267
31266
|
}
|
|
@@ -31271,9 +31270,6 @@ var SliderPopup = function SliderPopup(_ref) {
|
|
|
31271
31270
|
dispatch(loadMoreAttachmentsAC(34, queryDirection.PREV, attachmentsList[0].id, true));
|
|
31272
31271
|
}
|
|
31273
31272
|
}, [activeFileIndex, attachmentLoadingStateForPopup, attachmentsForPopupHasPrev, attachmentsList, dispatch]);
|
|
31274
|
-
console.log('attachmentsForPopupHasNext', attachmentsForPopupHasNext);
|
|
31275
|
-
console.log('attachmentsForPopupHasPrev', attachmentsForPopupHasPrev);
|
|
31276
|
-
console.log('attachmentsList', attachmentsList);
|
|
31277
31273
|
return /*#__PURE__*/React__default.createElement(Container$b, {
|
|
31278
31274
|
draggable: false
|
|
31279
31275
|
}, /*#__PURE__*/React__default.createElement(SliderHeader, null, /*#__PURE__*/React__default.createElement(FileInfo, null, /*#__PURE__*/React__default.createElement(Avatar, {
|
|
@@ -50607,7 +50603,7 @@ var Details = function Details(_ref) {
|
|
|
50607
50603
|
dispatch(loadMoreMembersAC(15, activeChannel.id));
|
|
50608
50604
|
}
|
|
50609
50605
|
} else if (attachmentLoadingState === LOADING_STATE.LOADED && attachmentsHasNex) {
|
|
50610
|
-
dispatch(loadMoreAttachmentsAC(20));
|
|
50606
|
+
dispatch(loadMoreAttachmentsAC(20, queryDirection.PREV));
|
|
50611
50607
|
}
|
|
50612
50608
|
}
|
|
50613
50609
|
};
|