Merge pull request #2145 from matrix-org/bwindels/fixllroompermission
Don't rely on room members to query power levelspull/21833/head
commit
50de22fb51
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue