moment/src/qml/Chat/ClearMessagesPopup.qml

18 lines
424 B
QML
Raw Normal View History

2019-09-09 20:23:46 +10:00
import QtQuick 2.12
import "../Base"
2019-09-09 20:25:08 +10:00
HBoxPopup {
summary.text: qsTr("Clear this room's messages?")
details.text: qsTr(
2019-09-09 20:23:46 +10:00
"The messages will only be removed on your side. " +
"They will be available again after you restart the application."
)
box.focusButton: "ok"
2019-09-09 20:23:46 +10:00
onOk: py.callClientCoro(userId, "clear_events", [roomId])
property string userId: ""
property string roomId: ""
}