Merge remote-tracking branch 'origin/develop' into develop

pull/21833/head
Weblate 2018-09-05 17:09:54 +00:00
commit 0979baa24d
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.maySendMessage();
const canSendMessages = !this.state.tombstone && this.props.room.currentState.maySendMessage(
MatrixClientPeg.get().credentials.userId);
if (canSendMessages) {
// This also currently includes the call buttons. Really we should