-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
avoid self role revoke in conferences. #1751
base: 4.6
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hello! Thanks for your contribution!
This PR has a lot of changes that affect formatting, but not the code. This makes it hard to review the PR.
The only functional change that I see is that there's now a check for null, for the 'from' attribute of a stanza. It is not immediately clear to me (or to anyone that will be maintaining this code) why this check solves an issue. Please provide additional comments around that check, to explain why this check is needed.
Furthermore, my suspicion is that the check for null almost accidentally has the desired effect (the 'from' attribute happens to be null in the desired scenario, but I wonder if that's relevant to the functionality that's being modified). If I'm right, then this change needs to be improved, to be more a lot more explicit.
If this CR will prevent to self-revoke the room admin role, I would disagree to accept it: It's an thinkable usecase for me (and others in our company) first to act as a "chairman" to establish a room in a good time before, then spread the admin role to the arriving speaker and it's team. At this point, a former admin may want to release this role. |
@gjaekel its upto you sir. I don't find this implementation is unsafe little. suppose if a chairman organised a chat. where he granted some peoples as owner. Then they should not allowed release this role because if you think practical if somebody don't want then they immediately talk about this with the chairman. If admin disagree or don't like to go such meetings then they leave that conference. See openfire is really awesome open source project to me. Am learning something everyday about openfire. |
Please review now and let me know.