use room method for checking power levels

as it is always are of the syncing user's membership
in case of lazy loading members
pull/21833/head
Bruno Windels 2018-09-04 15:35:44 +02:00
parent d9fb88246a
commit be66f98381
1 changed files with 2 additions and 2 deletions

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