Disable sending messages to encrypted rooms

This commit is contained in:
Tobias Fella
2021-05-21 12:20:53 +02:00
parent a24df37d74
commit 0bc51627bb

View File

@@ -87,10 +87,12 @@ ToolBar {
//property int lineHeight: contentHeight / lineCount
text: inputFieldText
placeholderText: editEventId.length > 0 ? i18n("Edit Message") : i18n("Write your message...")
placeholderText: currentRoom.usesEncryption ? i18n("This room is encrypted. Sending encrypted messages is not yet supported.") : editEventId.length > 0 ? i18n("Edit Message") : i18n("Write your message...")
verticalAlignment: TextEdit.AlignVCenter
horizontalAlignment: TextEdit.AlignLeft
wrapMode: Text.Wrap
readOnly: currentRoom.usesEncryption
ChatDocumentHandler {
id: documentHandler