Display read receipts when read indicator is clicked

This commit is contained in:
Loren Burkholder 2021-01-15 20:38:30 -05:00
parent fef042f131
commit f520f8ce16
2 changed files with 7 additions and 0 deletions

View file

@ -6,6 +6,7 @@ Rectangle {
id: indicator
property int state: 0
property string eventId
color: "transparent"
width: 16
@ -31,6 +32,11 @@ Rectangle {
anchors.fill: parent
hoverEnabled: true
onClicked: {
if (indicator.state == MtxEvent.Read)
TimelineManager.timeline.readReceiptsAction(indicator.eventId);
}
}
Image {

View file

@ -70,6 +70,7 @@ Item {
StatusIndicator {
state: model.state
eventId: model.id
Layout.alignment: Qt.AlignRight | Qt.AlignTop
Layout.preferredHeight: 16
width: 16