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

grey out roomsettings that you can't edit #217

Merged
merged 4 commits into from Mar 16, 2016

Conversation

ara4n
Copy link
Member

@ara4n ara4n commented Mar 15, 2016

No description provided.

@ara4n
Copy link
Member Author

ara4n commented Mar 15, 2016

hopefully fixes:
element-hq/element-web#1088
element-hq/element-web#740
element-hq/element-web#764
and possibly others...

@@ -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'];
Copy link
Member

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.

@dbkr
Copy link
Member

dbkr commented Mar 15, 2016

otherwise looks good

@dbkr dbkr assigned ara4n and unassigned dbkr Mar 15, 2016
@ara4n
Copy link
Member Author

ara4n commented Mar 16, 2016

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.

@ara4n ara4n assigned dbkr and unassigned ara4n Mar 16, 2016
ara4n added a commit that referenced this pull request Mar 16, 2016
grey out roomsettings that you can't edit
@ara4n ara4n merged commit 8167468 into develop Mar 16, 2016
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.

None yet

2 participants