https://github.com/RocketChat/EmbeddedChat/pull/51 solves it partially by adding a me call to the API when there is no user info stored in our localstorage but if the user changed its cookies into a new user's cookies he will still get his user profile image as the previous one and also the app would show indeterministic UI.
Steps to reproduce:
Note: During development only!
Login into EmbeddedChat
Login into some other account in RC
Come back to see in EC that you have the same profile image as before but you message with the user you logged in with in RC.
Expected behavior:
User details should get updated
Actual behavior:
They don't.
Extra
You can take help of this PR to get everything working if user's info is missing and add into it a functionality to check if the user has been changed midway! This could be possible if we add a check to user_id cookie to a stored version at localstorage or if you have an amazing way, please feel free to post it here!
Description:
https://github.com/RocketChat/EmbeddedChat/pull/51 solves it partially by adding a
me
call to the API when there is no user info stored in our localstorage but if the user changed its cookies into a new user's cookies he will still get his user profile image as the previous one and also the app would show indeterministic UI.Steps to reproduce:
Expected behavior:
User details should get updated
Actual behavior:
They don't.
Extra
You can take help of this PR to get everything working if user's info is missing and add into it a functionality to check if the user has been changed midway! This could be possible if we add a check to user_id cookie to a stored version at localstorage or if you have an amazing way, please feel free to post it here!