Fix sending encrypted messages in encrypted rooms when messages are disallowed

Fixes #1933
This commit is contained in:
Nicolas Werner 2025-08-16 11:29:26 +02:00
parent 2bc2dfb64c
commit f59f77a21e
No known key found for this signature in database
GPG key ID: C8D75E610773F2D9

View file

@ -39,7 +39,7 @@ Rectangle {
anchors.fill: parent
spacing: 0
visible: room ? room.permissions.canSend(MtxEvent.TextMessage) : false
visible: room ? room.permissions.canSend(room.isEncrypted ? MtxEvent.Encrypted : MtxEvent.TextMessage) : false
ImageButton {
Layout.alignment: Qt.AlignBottom