From 462a559bd3015413c950beb949656072398dd0d9 Mon Sep 17 00:00:00 2001 From: kfiven <33421343+kfiven@users.noreply.github.com> Date: Sun, 10 Oct 2021 19:33:20 +0530 Subject: [PATCH] Fix unable to send msg in DM from IRC users (#135) --- src/app/organisms/room/RoomViewInput.jsx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/app/organisms/room/RoomViewInput.jsx b/src/app/organisms/room/RoomViewInput.jsx index 6c354eda..5ca4fdd3 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) {