Skip to content
This repository was archived by the owner on Feb 21, 2024. It is now read-only.

MarkRead method - Acknowledge events #81

Merged
merged 1 commit into from
Aug 27, 2020

Conversation

TheDiscordian
Copy link
Contributor

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
Copy link
Contributor Author

Might be related to #51.

@neilalexander neilalexander merged commit 5891715 into matrix-org:master Aug 27, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants