matrix-org / gomatrix

A Golang Matrix client
Apache License 2.0
285 stars 53 forks source link

MarkRead method need to send JSON in Request Body #99

Open gdgd-server-admin opened 2 years ago

gdgd-server-admin commented 2 years ago

Example Request send empty JSON in Request Body,but Mark Read method send nothing in Request Body. See https://matrix.org/docs/spec/client_server/r0.6.0#post-matrix-client-r0-rooms-roomid-receipt-receipttype-eventid

TheDiscordian commented 2 years ago

@gdgd-server-admin thanks for this PR! Does this resolve the error when sending read receipts?

code=400 wrapped=M_NOT_JSON: Content not JSON.

I recently started to get this error while using MarkRead. If your PR resolves that, then I say @kegsay please accept :pray: :heart:

gdgd-server-admin commented 2 years ago

@gdgd-server-admin thanks for this PR! Does this resolve the error when sending read receipts?

code=400 wrapped=M_NOT_JSON: Content not JSON.

I recently started to get this error while using MarkRead. If your PR resolves that, then I say @kegsay please accept 🙏 ❤️

I found it in Matterbridge ( https://github.com/42wim/matterbridge) and my local fix version work fine.