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
grey out roomsettings that you can't edit #217
Conversation
hopefully fixes: |
@@ -321,18 +321,18 @@ module.exports = React.createClass({ | |||
|
|||
var state_default = (parseInt(power_levels ? power_levels.state_default : 0) || 0); | |||
|
|||
var room_aliases_level = state_default; | |||
if (events_levels['m.room.aliases'] !== undefined) { | |||
room_aliases_level = events_levels['m.room.aliases']; |
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.
I moved this out to the js sdk in #187 / matrix-org/matrix-js-sdk#94 so maybe we should just merge that and use it.
otherwise looks good |
i've done the switch, but it's caused a regression because roomState.maySendStateEvent() doesn't check to see if the user is a guest (in which case they certainly can't send state events). Suggestions welcome on the right fix for this. |
grey out roomsettings that you can't edit
No description provided.