2019-12-19 07:46:16 -04:00
|
|
|
// SPDX-License-Identifier: LGPL-3.0-or-later
|
|
|
|
|
2019-09-09 06:23:46 -04:00
|
|
|
import QtQuick 2.12
|
|
|
|
|
2019-09-09 08:57:38 -04:00
|
|
|
BoxPopup {
|
2019-09-09 06:32:29 -04:00
|
|
|
summary.text: qsTr("Clear this room's messages?")
|
|
|
|
details.text: qsTr(
|
2019-09-09 06:23:46 -04:00
|
|
|
"The messages will only be removed on your side. " +
|
|
|
|
"They will be available again after you restart the application."
|
|
|
|
)
|
2019-09-09 08:20:24 -04:00
|
|
|
okText: qsTr("Clear")
|
2019-09-09 08:15:28 -04:00
|
|
|
box.focusButton: "ok"
|
2019-09-09 06:23:46 -04:00
|
|
|
|
|
|
|
onOk: py.callClientCoro(userId, "clear_events", [roomId])
|
|
|
|
|
|
|
|
|
|
|
|
property string userId: ""
|
|
|
|
property string roomId: ""
|
|
|
|
}
|