Fix unable to send msg in DM from IRC users (#135)
This commit is contained in:
parent
1bd58a0103
commit
462a559bd3
1 changed files with 1 additions and 2 deletions
|
@ -327,8 +327,7 @@ function RoomViewInput({
|
||||||
if (file !== null) roomsInput.setAttachment(roomId, file);
|
if (file !== null) roomsInput.setAttachment(roomId, file);
|
||||||
}
|
}
|
||||||
|
|
||||||
const myPowerlevel = roomTimeline.room.getMember(mx.getUserId()).powerLevel;
|
const canISend = roomTimeline.room.currentState.maySendMessage(mx.getUserId());
|
||||||
const canISend = roomTimeline.room.currentState.hasSufficientPowerLevelFor('events_default', myPowerlevel);
|
|
||||||
|
|
||||||
function renderInputs() {
|
function renderInputs() {
|
||||||
if (!canISend) {
|
if (!canISend) {
|
||||||
|
|
Loading…
Reference in a new issue