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

Re-apply "Don't rely on room members to query power levels"
pull/21833/head
Bruno Windels 2018-09-06 17:23:02 +02:00 committed by GitHub
commit 6f706641a3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

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