Uncheck messages before clearing event list

This commit is contained in:
miruka
2020-06-26 06:09:20 -04:00
parent 7f66ebb786
commit d058926902
5 changed files with 13 additions and 2 deletions

View File

@@ -9,6 +9,7 @@ HFlickableColumnPopup {
property string userId: ""
property string roomId: ""
property var preClearCallback: null
page.footer: ButtonLayout {
@@ -17,6 +18,7 @@ HFlickableColumnPopup {
text: qsTr("Clear")
icon.name: "clear-messages"
onClicked: {
if (preClearCallback) preClearCallback()
py.callClientCoro(userId, "clear_events", [roomId])
popup.close()
}