matrix-org / gomatrix

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

MarkRead method - Acknowledge events #81

Closed TheDiscordian closed 4 years ago

TheDiscordian commented 4 years ago

See: https://matrix.org/docs/spec/client_server/r0.6.0#post-matrix-client-r0-rooms-roomid-receipt-receipttype-eventid

Adds:

// MarkRead marks eventID in roomID as read, signifying the event, and all before it have been read. See https://matrix.org/docs/spec/client_server/r0.6.0#post-matrix-client-r0-rooms-roomid-receipt-receipttype-eventid
func (cli *Client) MarkRead(roomID, eventID string) error {

Something like this feels necessary for a client to feel natural using the gomatrix module.

TheDiscordian commented 4 years ago

Might be related to #51.