2019-12-19 22:46:16 +11:00
|
|
|
// SPDX-License-Identifier: LGPL-3.0-or-later
|
|
|
|
|
2019-09-09 20:23:46 +10:00
|
|
|
import QtQuick 2.12
|
|
|
|
|
2019-09-09 22:57:38 +10:00
|
|
|
BoxPopup {
|
2019-09-09 20:32:29 +10:00
|
|
|
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."
|
|
|
|
)
|
2019-09-09 22:20:24 +10:00
|
|
|
okText: qsTr("Clear")
|
2019-09-09 22:15:28 +10:00
|
|
|
box.focusButton: "ok"
|
2019-09-09 20:23:46 +10:00
|
|
|
|
|
|
|
onOk: py.callClientCoro(userId, "clear_events", [roomId])
|
|
|
|
|
|
|
|
|
|
|
|
property string userId: ""
|
|
|
|
property string roomId: ""
|
|
|
|
}
|