mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-29 14:18:49 +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
|
id: indicator
|
||||||
|
|
||||||
property int state: 0
|
property int state: 0
|
||||||
|
property string eventId
|
||||||
|
|
||||||
color: "transparent"
|
color: "transparent"
|
||||||
width: 16
|
width: 16
|
||||||
|
@ -31,6 +32,11 @@ Rectangle {
|
||||||
|
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
hoverEnabled: true
|
hoverEnabled: true
|
||||||
|
|
||||||
|
onClicked: {
|
||||||
|
if (indicator.state == MtxEvent.Read)
|
||||||
|
TimelineManager.timeline.readReceiptsAction(indicator.eventId);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Image {
|
Image {
|
||||||
|
|
|
@ -70,6 +70,7 @@ Item {
|
||||||
|
|
||||||
StatusIndicator {
|
StatusIndicator {
|
||||||
state: model.state
|
state: model.state
|
||||||
|
eventId: model.id
|
||||||
Layout.alignment: Qt.AlignRight | Qt.AlignTop
|
Layout.alignment: Qt.AlignRight | Qt.AlignTop
|
||||||
Layout.preferredHeight: 16
|
Layout.preferredHeight: 16
|
||||||
width: 16
|
width: 16
|
||||||
|
|
Loading…
Reference in a new issue