sceyt-chat-react-uikit 1.6.7-beta.18 → 1.6.7-beta.19

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
@@ -19979,7 +19979,7 @@ var Container$4 = styled__default.div(_templateObject$8 || (_templateObject$8 =
19979
19979
  }, function (props) {
19980
19980
  return props.height ? props.height + "px" : '0px';
19981
19981
  }, function (props) {
19982
- return props.background;
19982
+ return props.background + "40";
19983
19983
  });
19984
19984
 
19985
19985
  var _templateObject$9, _templateObject2$8, _templateObject3$5, _templateObject4$5, _templateObject5$3, _templateObject6$2, _templateObject7$2, _templateObject8$2, _templateObject9$2, _templateObject0$2, _templateObject1$2;
@@ -21510,6 +21510,7 @@ var ChannelList = function ChannelList(_ref) {
21510
21510
  var _useState4 = React.useState(false),
21511
21511
  isScrolling = _useState4[0],
21512
21512
  setIsScrolling = _useState4[1];
21513
+ var activeChannelMembers = reactRedux.useSelector(activeChannelMembersSelector, reactRedux.shallowEqual);
21513
21514
  var handleSetChannelList = function handleSetChannelList(updatedChannels, isRemove) {
21514
21515
  if (isRemove) {
21515
21516
  var channelsMap = {};
@@ -21669,9 +21670,11 @@ var ChannelList = function ChannelList(_ref) {
21669
21670
  }, [searchValue]);
21670
21671
  useDidUpdate(function () {
21671
21672
  if (getSelectedChannel) {
21672
- getSelectedChannel(activeChannel);
21673
+ getSelectedChannel(_extends({}, activeChannel, activeChannelMembers && activeChannelMembers.length > 0 ? {
21674
+ members: activeChannelMembers
21675
+ } : {}));
21673
21676
  }
21674
- }, [activeChannel.id]);
21677
+ }, [activeChannel.id, activeChannelMembers === null || activeChannelMembers === void 0 ? void 0 : activeChannelMembers.length]);
21675
21678
  useDidUpdate(function () {
21676
21679
  if (closeSearchChannels) {
21677
21680
  getMyChannels();
package/index.modern.js CHANGED
@@ -19956,7 +19956,7 @@ var Container$4 = styled.div(_templateObject$8 || (_templateObject$8 = _taggedTe
19956
19956
  }, function (props) {
19957
19957
  return props.height ? props.height + "px" : '0px';
19958
19958
  }, function (props) {
19959
- return props.background;
19959
+ return props.background + "40";
19960
19960
  });
19961
19961
 
19962
19962
  var _templateObject$9, _templateObject2$8, _templateObject3$5, _templateObject4$5, _templateObject5$3, _templateObject6$2, _templateObject7$2, _templateObject8$2, _templateObject9$2, _templateObject0$2, _templateObject1$2;
@@ -21487,6 +21487,7 @@ var ChannelList = function ChannelList(_ref) {
21487
21487
  var _useState4 = useState(false),
21488
21488
  isScrolling = _useState4[0],
21489
21489
  setIsScrolling = _useState4[1];
21490
+ var activeChannelMembers = useSelector(activeChannelMembersSelector, shallowEqual);
21490
21491
  var handleSetChannelList = function handleSetChannelList(updatedChannels, isRemove) {
21491
21492
  if (isRemove) {
21492
21493
  var channelsMap = {};
@@ -21646,9 +21647,11 @@ var ChannelList = function ChannelList(_ref) {
21646
21647
  }, [searchValue]);
21647
21648
  useDidUpdate(function () {
21648
21649
  if (getSelectedChannel) {
21649
- getSelectedChannel(activeChannel);
21650
+ getSelectedChannel(_extends({}, activeChannel, activeChannelMembers && activeChannelMembers.length > 0 ? {
21651
+ members: activeChannelMembers
21652
+ } : {}));
21650
21653
  }
21651
- }, [activeChannel.id]);
21654
+ }, [activeChannel.id, activeChannelMembers === null || activeChannelMembers === void 0 ? void 0 : activeChannelMembers.length]);
21652
21655
  useDidUpdate(function () {
21653
21656
  if (closeSearchChannels) {
21654
21657
  getMyChannels();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sceyt-chat-react-uikit",
3
- "version": "1.6.7-beta.18",
3
+ "version": "1.6.7-beta.19",
4
4
  "description": "Interactive React UI Components for Sceyt Chat.",
5
5
  "author": "Sceyt",
6
6
  "license": "MIT",