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

Commit 50de22f

Browse files
authored
Merge pull request #2145 from matrix-org/bwindels/fixllroompermission
Don't rely on room members to query power levels
2 parents 4517eab + be66f98 commit 50de22f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/components/views/rooms/MessageComposer.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -309,8 +309,8 @@ export default class MessageComposer extends React.Component {
309309
</div>;
310310
}
311311

312-
const canSendMessages = !this.state.tombstone && this.props.room.currentState.maySendMessage(
313-
MatrixClientPeg.get().credentials.userId);
312+
const canSendMessages = !this.state.tombstone &&
313+
this.props.room.maySendMessage();
314314

315315
if (canSendMessages) {
316316
// This also currently includes the call buttons. Really we should

0 commit comments

Comments
 (0)