We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f64a3a6 commit 1058405Copy full SHA for 1058405
packages/react/src/views/EmbeddedChat.js
@@ -83,6 +83,9 @@ const EmbeddedChat = (props) => {
83
}));
84
85
const setIsLoginIn = useLoginStore((state) => state.setIsLoginIn);
86
+ const setUserPinPermissions = useUserStore(
87
+ (state) => state.setUserPinPermissions
88
+ );
89
90
if (isClosable && !setClosableState) {
91
throw Error(
@@ -125,6 +128,8 @@ const EmbeddedChat = (props) => {
125
128
setIsLoginIn(true);
126
129
try {
127
130
await RCInstance.autoLogin(auth);
131
+ const permissions = await RCInstance.permissionInfo();
132
+ setUserPinPermissions(permissions.update[150]);
133
} catch (error) {
134
console.error(error);
135
} finally {
0 commit comments