whyuzeim 1.0.13 → 1.0.14
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/cjs/IM/index.js +2 -1
- package/es/IM/index.js +2 -1
- package/package.json +1 -1
package/cjs/IM/index.js
CHANGED
|
@@ -28,6 +28,7 @@ var IM = function IM(props) {
|
|
|
28
28
|
_props$mobile = props.mobile,
|
|
29
29
|
mobile = _props$mobile === void 0 ? false : _props$mobile,
|
|
30
30
|
onChatIconClick = props.onChatIconClick;
|
|
31
|
+
console.log('the useinfo is', userInfo);
|
|
31
32
|
var agoraToken = useGetAgoraToken.useGetAgoraToken(http, userInfo.uid);
|
|
32
33
|
var _useState = React.useState(),
|
|
33
34
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -84,7 +85,7 @@ var IM = function IM(props) {
|
|
|
84
85
|
}
|
|
85
86
|
}, /*#__PURE__*/React.createElement(agoraChatUikit.UIKitProvider, {
|
|
86
87
|
initConfig: {
|
|
87
|
-
userId: userInfo.uid
|
|
88
|
+
userId: userInfo.uid,
|
|
88
89
|
appKey: appKey,
|
|
89
90
|
token: agoraToken
|
|
90
91
|
},
|
package/es/IM/index.js
CHANGED
|
@@ -26,6 +26,7 @@ var IM = function IM(props) {
|
|
|
26
26
|
_props$mobile = props.mobile,
|
|
27
27
|
mobile = _props$mobile === void 0 ? false : _props$mobile,
|
|
28
28
|
onChatIconClick = props.onChatIconClick;
|
|
29
|
+
console.log('the useinfo is', userInfo);
|
|
29
30
|
var agoraToken = useGetAgoraToken(http, userInfo.uid);
|
|
30
31
|
var _useState = useState(),
|
|
31
32
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -82,7 +83,7 @@ var IM = function IM(props) {
|
|
|
82
83
|
}
|
|
83
84
|
}, /*#__PURE__*/React.createElement(UIKitProvider, {
|
|
84
85
|
initConfig: {
|
|
85
|
-
userId: userInfo.uid
|
|
86
|
+
userId: userInfo.uid,
|
|
86
87
|
appKey: appKey,
|
|
87
88
|
token: agoraToken
|
|
88
89
|
},
|