Skip to content

Commit

Permalink
Merge branch 'RocketChat:develop' into fix-issue#622
Browse files Browse the repository at this point in the history
  • Loading branch information
devanshkansagra authored Dec 17, 2024
2 parents fbe9c7b + 1058405 commit 53c511e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/react/src/views/EmbeddedChat.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,9 @@ const EmbeddedChat = (props) => {
}));

const setIsLoginIn = useLoginStore((state) => state.setIsLoginIn);
const setUserPinPermissions = useUserStore(
(state) => state.setUserPinPermissions
);

if (isClosable && !setClosableState) {
throw Error(
Expand Down Expand Up @@ -125,6 +128,8 @@ const EmbeddedChat = (props) => {
setIsLoginIn(true);
try {
await RCInstance.autoLogin(auth);
const permissions = await RCInstance.permissionInfo();
setUserPinPermissions(permissions.update[150]);
} catch (error) {
console.error(error);
} finally {
Expand Down

0 comments on commit 53c511e

Please sign in to comment.