mirror of
https://github.com/vector-im/element-web.git
synced 2024-11-16 21:24:59 +08:00
Merge pull request #2152 from matrix-org/revert-2149-revert-2145-bwindels/fixllroompermission
Re-apply "Don't rely on room members to query power levels"
This commit is contained in:
commit
6f706641a3
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user