mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-25 20:48:52 +03:00
Display read receipts when read indicator is clicked
This commit is contained in:
parent
fef042f131
commit
f520f8ce16
2 changed files with 7 additions and 0 deletions
|
@ -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 a new issue