Cross-client unread counters & send read receipts

This commit is contained in:
miruka
2020-06-01 09:25:09 -04:00
parent d2300bf663
commit f686b96511
5 changed files with 31 additions and 31 deletions

View File

@@ -352,6 +352,20 @@ Rectangle {
}
}
Timer {
interval: 1000
running:
(chat.roomInfo.unreads || chat.roomInfo.highlights) &&
Qt.application.state === Qt.ApplicationActive &&
(eventList.contentY + eventList.height) > -50
onTriggered: {
const eventId = eventList.model.get(0).id
py.callCoro("update_room_read_marker", [chat.roomId, eventId])
}
}
HNoticePage {
text: qsTr("No messages to show yet")