whyuzeim 1.0.10 → 1.0.11

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.
@@ -141,6 +141,8 @@ var AddMember = function AddMember() {
141
141
  rightNode: /*#__PURE__*/React.createElement(agoraChatUikit.Checkbox, {
142
142
  checked: !!_findInstanceProperty(memberList).call(memberList, function (child) {
143
143
  return child.userid === item.userid;
144
+ }) || !!_findInstanceProperty(memberids).call(memberids, function (child) {
145
+ return child === item.userid;
144
146
  }),
145
147
  disabled: !!_findInstanceProperty(memberList).call(memberList, function (child) {
146
148
  return child.userid === item.userid;
@@ -50,7 +50,7 @@ var ContactList = function ContactList(props) {
50
50
  keyword: keyword,
51
51
  type: 2,
52
52
  userid: agoraChatUikit.rootStore.initConfig.userId,
53
- size: 10,
53
+ size: 20,
54
54
  page: pageRef.current
55
55
  });
56
56
  case 5:
@@ -27,7 +27,8 @@ var CreateGroup = function CreateGroup(props) {
27
27
  _props$open = props.open,
28
28
  open = _props$open === void 0 ? false : _props$open;
29
29
  var _useContext = React.useContext(context.Context),
30
- http = _useContext.http;
30
+ http = _useContext.http,
31
+ userInfo = _useContext.userInfo;
31
32
  var _useState = React.useState([]),
32
33
  _useState2 = _slicedToArray(_useState, 2),
33
34
  list = _useState2[0],
@@ -60,8 +61,8 @@ var CreateGroup = function CreateGroup(props) {
60
61
  return http.post("/capi/account/imsearch/findpage", {
61
62
  keyword: keyword,
62
63
  type: 2,
63
- userid: "fpn467kwz4rgzynyytb7enhqnjanggswe1hy5q8cja8",
64
- size: 10,
64
+ userid: userInfo === null || userInfo === void 0 ? void 0 : userInfo.uid,
65
+ size: 20,
65
66
  page: pageRef.current
66
67
  });
67
68
  case 5:
@@ -23,7 +23,8 @@ var MobileCreateGroup = /*#__PURE__*/React.forwardRef(function (props, ref) {
23
23
  var onClose = props.onClose,
24
24
  style = props.style;
25
25
  var _useContext = React.useContext(context.Context),
26
- http = _useContext.http;
26
+ http = _useContext.http,
27
+ userInfo = _useContext.userInfo;
27
28
  var _useState = React.useState([]),
28
29
  _useState2 = _slicedToArray(_useState, 2),
29
30
  list = _useState2[0],
@@ -52,8 +53,8 @@ var MobileCreateGroup = /*#__PURE__*/React.forwardRef(function (props, ref) {
52
53
  return http.post("/capi/account/imsearch/findpage", {
53
54
  keyword: keyword,
54
55
  type: 2,
55
- userid: "fpn467kwz4rgzynyytb7enhqnjanggswe1hy5q8cja8",
56
- size: 10,
56
+ userid: userInfo.uid,
57
+ size: 20,
57
58
  page: pageRef.current
58
59
  });
59
60
  case 5:
@@ -61,7 +61,7 @@ var Searchbox = function Searchbox(props) {
61
61
  keyword: keyword,
62
62
  type: 1,
63
63
  userid: agoraChatUikit.rootStore.initConfig.userId,
64
- size: 10,
64
+ size: 20,
65
65
  page: pageGroupsRef.current
66
66
  });
67
67
  case 5:
@@ -139,6 +139,8 @@ var AddMember = function AddMember() {
139
139
  rightNode: /*#__PURE__*/React.createElement(Checkbox, {
140
140
  checked: !!_findInstanceProperty(memberList).call(memberList, function (child) {
141
141
  return child.userid === item.userid;
142
+ }) || !!_findInstanceProperty(memberids).call(memberids, function (child) {
143
+ return child === item.userid;
142
144
  }),
143
145
  disabled: !!_findInstanceProperty(memberList).call(memberList, function (child) {
144
146
  return child.userid === item.userid;
@@ -48,7 +48,7 @@ var ContactList = function ContactList(props) {
48
48
  keyword: keyword,
49
49
  type: 2,
50
50
  userid: rootStore.initConfig.userId,
51
- size: 10,
51
+ size: 20,
52
52
  page: pageRef.current
53
53
  });
54
54
  case 5:
@@ -25,7 +25,8 @@ var CreateGroup = function CreateGroup(props) {
25
25
  _props$open = props.open,
26
26
  open = _props$open === void 0 ? false : _props$open;
27
27
  var _useContext = useContext(Context),
28
- http = _useContext.http;
28
+ http = _useContext.http,
29
+ userInfo = _useContext.userInfo;
29
30
  var _useState = useState([]),
30
31
  _useState2 = _slicedToArray(_useState, 2),
31
32
  list = _useState2[0],
@@ -58,8 +59,8 @@ var CreateGroup = function CreateGroup(props) {
58
59
  return http.post("/capi/account/imsearch/findpage", {
59
60
  keyword: keyword,
60
61
  type: 2,
61
- userid: "fpn467kwz4rgzynyytb7enhqnjanggswe1hy5q8cja8",
62
- size: 10,
62
+ userid: userInfo === null || userInfo === void 0 ? void 0 : userInfo.uid,
63
+ size: 20,
63
64
  page: pageRef.current
64
65
  });
65
66
  case 5:
@@ -21,7 +21,8 @@ var MobileCreateGroup = /*#__PURE__*/forwardRef(function (props, ref) {
21
21
  var onClose = props.onClose,
22
22
  style = props.style;
23
23
  var _useContext = useContext(Context),
24
- http = _useContext.http;
24
+ http = _useContext.http,
25
+ userInfo = _useContext.userInfo;
25
26
  var _useState = useState([]),
26
27
  _useState2 = _slicedToArray(_useState, 2),
27
28
  list = _useState2[0],
@@ -50,8 +51,8 @@ var MobileCreateGroup = /*#__PURE__*/forwardRef(function (props, ref) {
50
51
  return http.post("/capi/account/imsearch/findpage", {
51
52
  keyword: keyword,
52
53
  type: 2,
53
- userid: "fpn467kwz4rgzynyytb7enhqnjanggswe1hy5q8cja8",
54
- size: 10,
54
+ userid: userInfo.uid,
55
+ size: 20,
55
56
  page: pageRef.current
56
57
  });
57
58
  case 5:
@@ -59,7 +59,7 @@ var Searchbox = function Searchbox(props) {
59
59
  keyword: keyword,
60
60
  type: 1,
61
61
  userid: rootStore.initConfig.userId,
62
- size: 10,
62
+ size: 20,
63
63
  page: pageGroupsRef.current
64
64
  });
65
65
  case 5:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "whyuzeim",
3
- "version": "1.0.10",
3
+ "version": "1.0.11",
4
4
  "description": "im componenets",
5
5
  "main": "cjs/index.js",
6
6
  "module": "es/index.js",