Display read receipts when read indicator is clicked
This commit is contained in:
parent
fef042f131
commit
f520f8ce16
@ -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 {
|
||||
|
@ -70,6 +70,7 @@ Item {
|
||||
|
||||
StatusIndicator {
|
||||
state: model.state
|
||||
eventId: model.id
|
||||
Layout.alignment: Qt.AlignRight | Qt.AlignTop
|
||||
Layout.preferredHeight: 16
|
||||
width: 16
|
||||
|
Loading…
Reference in New Issue
Block a user