Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: ensure pin permission changes reflect without requiring user logout #688

Merged
merged 1 commit into from
Dec 17, 2024

Conversation

SinghaAnirban005
Copy link
Contributor

@SinghaAnirban005 SinghaAnirban005 commented Dec 16, 2024

Brief Title

Fix: Pin Permission Changes Not Reflected Without User Logout

Acceptance Criteria fulfillment

  • Pin permission changes made by the admin are now immediately reflected for the user after a page refresh.

  • No need for the user to log out and log back in to see the updated permissions.

Fixes #686

Video/Screenshots

EmbeddedChat._.Simple.-.Simple.Storybook.-.Brave.2024-12-17.02-01-38.mp4

PR Test Details

Note: The PR will be ready for live testing at https://rocketchat.github.io/EmbeddedChat/pulls/pr-688 after approval. Contributors are requested to replace <pr-number> with the actual PR number.

@Spiral-Memory Spiral-Memory merged commit 1058405 into RocketChat:develop Dec 17, 2024
4 checks passed
@devanshkansagra
Copy link
Contributor

devanshkansagra commented Dec 17, 2024

Hey @SinghaAnirban005, still a new thing got arised, check this
Screencast from 17-12-24 10:35:30 PM IST.webm

A tip: Do not be in hurry on raising the pull requests okay you first review your code from your side be cleared before raising the pull request so that any edge cases or bug does not occur

@SinghaAnirban005
Copy link
Contributor Author

@devanshkansagra it works absolutely fine on my end
Check this out !!

EmbeddedChat._.Simple.-.Simple.Storybook.-.Brave.2024-12-18.00-04-11.mp4

Also the reason why you are not being able to take away the pin permission from admin user is that by default an Admin user has two specific roles ['user', 'Admin'] so if you want to restrict admin from pinning messages you must unselect both the admin and user checkboxes .

@devanshkansagra
Copy link
Contributor

Oh okay. But still in case of normal user it is failing see
Screencast from 18-12-24 12:18:23 AM IST.webm

@SinghaAnirban005
Copy link
Contributor Author

@devanshkansagra

It still works !!

EmbeddedChat._.Simple.-.Simple.Storybook.-.Brave.2024-12-18.00-48-58.mp4

@devanshkansagra
Copy link
Contributor

Then why this is still occuring on my side? I have also pulled the latest changes in my fork(devanshkansagra/EmbeddedChat), including this merge. @Spiral-Memory could you please verify this on your side as well?

@Spiral-Memory
Copy link
Collaborator

Won't be able to verify now
Will see on weekends.. or if i get some room

@devanshkansagra
Copy link
Contributor

okay no problem

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Pin Permission Changes Not Reflected Until User Logs Out and Logs In
3 participants