mirror of
https://github.com/cinnyapp/cinny.git
synced 2025-09-16 15:52:25 +03:00
Fix unable to send msg in DM from IRC users (#135)
This commit is contained in:
parent
824a7f2095
commit
7b67e4a6e6
1 changed files with 1 additions and 2 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue