-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Read markers no longer automatically update #12981
Comments
I think the broken call to |
Do you get a 200 response back from that call? My initial thought was this could be related to the private read receipts feature, but I don't believe that was in Synapse 1.51.0. |
Thanks for the details about what requests you're making, that should be useful. I'd like some logs, please (ideally at DEBUG or INFO level), showing the bot's requests to set a read receipt and what response code is being sent.
This is the main thing that comes to mind: you should send a The other thing I wonder: is it valid to send |
Thanks for checking it was that and getting back to us. |
Description
Read markers have stopped updating for the bots on my server. Previously, they were configured to keep their marker at the last sent message in the room. This no longer works and the read marker is always at the last message the bot has sent.
This is using the Rust crate matrix_bot_api.
Steps to reproduce
Run one of my matrix bots (that I can upload the source to if needed) OR
Run the same HTTP requests the bot makes to make this happen:
Make a POST request to
https://riot.firechicken.net/_matrix/client/r0/rooms/!HuzZYsRDedSlARruIP:riot.firechicken.net/receipt/m.read/$7bpnSeb8J5rbAQiweFv_Oqx-IEpvFqxXdrk3x3uYnZ8?access_token=<redacted>
^ This one is sent with an empty body, and gets a 400 status code. However, sending a curl post request with a body of "{}" does make it 200 but it doesn't appear to make for any different behaviour as far as the read marker is concerned.
Make a POST request to
https://riot.firechicken.net/_matrix/client/r0/rooms/!HuzZYsRDedSlARruIP:riot.firechicken.net/read_markers?access_token=<redacted>
with the bodyI think this should be sufficient to update the read marker, but nothing happens. The bot also runs a
https://riot.firechicken.net/_matrix/client/r0/sync
after this.Version information
If not matrix.org:
Version: Synapse 1.51.0
Install method: pip
The text was updated successfully, but these errors were encountered: