Merge pull request #2149 from matrix-org/revert-2145-bwindels/fixllroompermission
Revert "Don't rely on room members to query power levels"
This commit is contained in:
commit
9f5ea73dc2
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue