avoid self role revoke in conferences.#1751
avoid self role revoke in conferences.#1751lakadbagha wants to merge 2 commits intoigniterealtime:4.6from
Conversation
guusdk
left a comment
There was a problem hiding this comment.
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. |
|
Can a verdict be reached on this PR? |
|
Giving that this is lingering for 4 years without to much activity, I'm going to be a bit hand-wavy:
To me, that's a good indication that the existing behavior of Openfire is doing the right thing, and that this change is not needed to conform to the specification. As there are various other concerns with this PR, I'm going to close this without a merge. |
Please review now and let me know.