7b3b886f10
The banner replaces the SendBox, to prevent sending messages when nio will raise an OlmTrustError.
26 lines
535 B
QML
26 lines
535 B
QML
import QtQuick 2.7
|
|
import "../../Base"
|
|
import "../utils.js" as ChatJS
|
|
|
|
Banner {
|
|
color: HStyle.chat.unknownDevices.background
|
|
|
|
avatar.visible: false
|
|
icon.svgName: "unknown_devices_warning"
|
|
labelText: "Unknown devices are present in this encrypted room."
|
|
|
|
buttonModel: [
|
|
{
|
|
name: "inspect",
|
|
text: qsTr("Inspect"),
|
|
iconName: "unknown_devices_inspect",
|
|
}
|
|
]
|
|
|
|
buttonCallbacks: {
|
|
"inspect": function(button) {
|
|
print("show")
|
|
},
|
|
}
|
|
}
|