Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Commit

Permalink
Merge pull request #2149 from matrix-org/revert-2145-bwindels/fixllro…
Browse files Browse the repository at this point in the history
…ompermission

Revert "Don't rely on room members to query power levels"
  • Loading branch information
dbkr authored Sep 5, 2018
2 parents 50de22f + 34d2795 commit 9f5ea73
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/views/rooms/MessageComposer.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 9f5ea73

Please sign in to comment.