diff --git a/src/app/organisms/room/RoomViewInput.jsx b/src/app/organisms/room/RoomViewInput.jsx index edad9c9..20886c2 100644 --- a/src/app/organisms/room/RoomViewInput.jsx +++ b/src/app/organisms/room/RoomViewInput.jsx @@ -327,7 +327,15 @@ function RoomViewInput({ if (file !== null) roomsInput.setAttachment(roomId, file); } + const myPowerlevel = roomTimeline.room.getMember(mx.getUserId()).powerLevel; + const canISend = roomTimeline.room.currentState.hasSufficientPowerLevelFor('events_default', myPowerlevel); + function renderInputs() { + if (!canISend) { + return ( +
You do not have permission to post to this room
+ ); + } return ( <>