Merge pull request #2145 from matrix-org/bwindels/fixllroompermission

Don't rely on room members to query power levels
This commit is contained in:
Bruno Windels 2018-09-05 13:07:55 +02:00 committed by GitHub
commit 50de22fb51
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -309,8 +309,8 @@ export default class MessageComposer extends React.Component {
</div>;
}
const canSendMessages = !this.state.tombstone && this.props.room.currentState.maySendMessage(
MatrixClientPeg.get().credentials.userId);
const canSendMessages = !this.state.tombstone &&
this.props.room.maySendMessage();
if (canSendMessages) {
// This also currently includes the call buttons. Really we should