Nothing happens after clicking on a pinned message

implement jumping to message on a simple click

Fixes #9365
This commit is contained in:
Lukáš Tinkl 2023-02-01 18:47:30 +01:00 committed by Alexandra Betouni
parent 1cc1b8a1b7
commit 78f4560a54
1 changed files with 7 additions and 3 deletions

View File

@ -111,12 +111,16 @@ StatusDialog {
MouseArea { MouseArea {
anchors.fill: parent anchors.fill: parent
enabled: !!root.messageToPin
cursorShape: Qt.PointingHandCursor cursorShape: Qt.PointingHandCursor
z: 55 z: 55
onClicked: { onClicked: {
if (!radio.checked) if (!!root.messageToPin) {
radio.checked = true if (!radio.checked)
radio.checked = true
} else {
root.close()
root.messageStore.messageModule.jumpToMessage(model.id)
}
} }
} }