project-robius / robrix

A multi-platform Matrix chat client written in pure Rust using the Makepad UI toolkit and the Robius app dev framework
MIT License
93 stars 17 forks source link

Send user read receipts based on scroll position #86

Closed kevinaboos closed 1 month ago

kevinaboos commented 3 months ago

When the user scrolls to a specific point in the timeline view, we should send read receipts such that the server knows the user has read up to that point.

Relevant Matrix SDK functions

The function we most likely want to use is send_multiple_receipts(). There is also a send_single_receipt() function, though I'm not sure when we'd prefer that one.

The type of read receipt we send will vary based on the scroll position: