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

Commit

Permalink
Revert "Don't rely on room members to query power levels"
Browse files Browse the repository at this point in the history
  • Loading branch information
dbkr authored Sep 5, 2018
1 parent 50de22f commit 34d2795
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 34d2795

Please sign in to comment.