@aomi-labs/react 0.3.7 → 0.3.8
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/dist/index.cjs +2 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +2 -3
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1490,7 +1490,7 @@ function AomiRuntimeCore({
|
|
|
1490
1490
|
const eventContext = useEventContext();
|
|
1491
1491
|
const notificationContext = useNotification();
|
|
1492
1492
|
const { user, onUserStateChange, getUserState } = useUser();
|
|
1493
|
-
const { getControlState, getCurrentThreadApp
|
|
1493
|
+
const { getControlState, getCurrentThreadApp } = useControl();
|
|
1494
1494
|
const sessionManagerRef = useRef7(null);
|
|
1495
1495
|
const walletHandler = useWalletHandler({
|
|
1496
1496
|
getSession: () => {
|
|
@@ -1694,9 +1694,8 @@ function AomiRuntimeCore({
|
|
|
1694
1694
|
useEffect3(() => {
|
|
1695
1695
|
return () => {
|
|
1696
1696
|
sessionManager.closeAll();
|
|
1697
|
-
void clearSecrets();
|
|
1698
1697
|
};
|
|
1699
|
-
}, [sessionManager
|
|
1698
|
+
}, [sessionManager]);
|
|
1700
1699
|
const userContext = useUser();
|
|
1701
1700
|
const sendMessage = useCallback7(
|
|
1702
1701
|
async (text) => {
|