From 34d27954cfd6049c993431bcf0673f1f3ba600d1 Mon Sep 17 00:00:00 2001 From: David Baker Date: Wed, 5 Sep 2018 18:03:48 +0100 Subject: [PATCH] Revert "Don't rely on room members to query power levels" --- src/components/views/rooms/MessageComposer.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/views/rooms/MessageComposer.js b/src/components/views/rooms/MessageComposer.js index ad4a1dfafe..dacd433e3e 100644 --- a/src/components/views/rooms/MessageComposer.js +++ b/src/components/views/rooms/MessageComposer.js @@ -309,8 +309,8 @@ export default class MessageComposer extends React.Component { ; } - 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