Disable sending messages to encrypted rooms
This commit is contained in:
@@ -87,10 +87,12 @@ ToolBar {
|
|||||||
//property int lineHeight: contentHeight / lineCount
|
//property int lineHeight: contentHeight / lineCount
|
||||||
|
|
||||||
text: inputFieldText
|
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
|
verticalAlignment: TextEdit.AlignVCenter
|
||||||
horizontalAlignment: TextEdit.AlignLeft
|
horizontalAlignment: TextEdit.AlignLeft
|
||||||
wrapMode: Text.Wrap
|
wrapMode: Text.Wrap
|
||||||
|
readOnly: currentRoom.usesEncryption
|
||||||
|
|
||||||
|
|
||||||
ChatDocumentHandler {
|
ChatDocumentHandler {
|
||||||
id: documentHandler
|
id: documentHandler
|
||||||
|
|||||||
Reference in New Issue
Block a user