From: kfiven <33421343+kfiven@users.noreply.github.com> Date: Sun, 10 Oct 2021 14:03:20 +0000 (+0530) Subject: Fix unable to send msg in DM from IRC users (#135) X-Git-Tag: v1.5.0~49 X-Git-Url: https://git.wafflesoft.org/?a=commitdiff_plain;h=462a559bd3015413c950beb949656072398dd0d9;p=cinny.git Fix unable to send msg in DM from IRC users (#135) --- diff --git a/src/app/organisms/room/RoomViewInput.jsx b/src/app/organisms/room/RoomViewInput.jsx index 6c354ed..5ca4fdd 100644 --- a/src/app/organisms/room/RoomViewInput.jsx +++ b/src/app/organisms/room/RoomViewInput.jsx @@ -327,8 +327,7 @@ 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); + const canISend = roomTimeline.room.currentState.maySendMessage(mx.getUserId()); function renderInputs() { if (!canISend) {