Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

m.read_marker -> m.fully_read #2128

Merged
merged 3 commits into from
Apr 18, 2017
Merged

m.read_marker -> m.fully_read #2128

merged 3 commits into from
Apr 18, 2017

Conversation

lukebarnard1
Copy link
Contributor

Also:

  • change the REST endpoint to have a "S" on the end (so it's now /read_markers)
  • change the content of the m.read_up_to event to have the key "event_id" instead of "marker".

This is reflected in recent changes to https://docs.google.com/document/d/1UWqdS-e1sdwkLDUY0wA4gZyIkRp-ekjsLZ8k6g_Zvso/edit#

Also:
 - change the REST endpoint to have a "S" on the end (so it's now /read_markers)
 - change the content of the m.read_up_to event to have the key "event_id" instead of "marker".
@lukebarnard1
Copy link
Contributor Author

lukebarnard1 commented Apr 13, 2017

This was blocked on further discussion of the details, namely what to name the RM event.

Update: the discussion was had here https://matrix.to/#/#riot-dev:matrix.org/$149250684660QgObm:ldbco.de and 'twas decided that m.fully_read would be the new name for m.read_marker.

Thus the range of possibly read messages is inclusively between m.full_read and m.read.

@lukebarnard1 lukebarnard1 changed the title m.read_marker -> m.read_up_to m.read_marker -> m.fully_read Apr 18, 2017
@richvdh
Copy link
Member

richvdh commented Apr 18, 2017

lgtm

@richvdh richvdh merged commit 3fb8784 into develop Apr 18, 2017
lukebarnard1 added a commit to matrix-org/matrix-js-sdk that referenced this pull request Apr 20, 2017
* Implement API for setting RM

This is now stored on the server with similar treatment to RRs. The server will only store the specified eventId as the current read marker for a room if the event is ahead in the stream when compared to the existing RM. The exception is when the RM has never been set for this room for this user, in which case the event ID will be stored as the RM without any comparison.

This API also allows for an optional RR event ID to be sent in the same request. This is because it might be the common case for some clients to update the RM at the same time as updating the RR.

See design: https://docs.google.com/document/d/1UWqdS-e1sdwkLDUY0wA4gZyIkRp-ekjsLZ8k6g_Zvso/edit

See server-side PRs: matrix-org/synapse#2120, matrix-org/synapse#2128
@hawkowl hawkowl deleted the luke/rename-read-marker branch September 20, 2018 14:02
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.

3 participants