Revert "Don't rely on room members to query power levels"

This commit is contained in:
David Baker 2018-09-05 18:03:48 +01:00 committed by GitHub
parent 50de22fb51
commit 34d27954cf
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>; </div>;
} }
const canSendMessages = !this.state.tombstone && const canSendMessages = !this.state.tombstone && this.props.room.currentState.maySendMessage(
this.props.room.maySendMessage(); MatrixClientPeg.get().credentials.userId);
if (canSendMessages) { if (canSendMessages) {
// This also currently includes the call buttons. Really we should // This also currently includes the call buttons. Really we should