1
0
mirror of https://github.com/matrix-org/matrix-react-sdk.git synced 2025-07-18 09:22:18 +03:00

m.read_marker -> m.fully_read

This commit is contained in:
Luke Barnard
2017-04-18 14:44:43 +01:00
parent 9c9dc84f45
commit 28ed69b617

View File

@ -120,7 +120,7 @@ var TimelinePanel = React.createClass({
// but for now we just do it per room for simplicity.
let initialReadMarker = null;
if (this.props.manageReadMarkers) {
const readmarker = this.props.timelineSet.room.getAccountData('m.read_marker');
const readmarker = this.props.timelineSet.room.getAccountData('m.fully_read');
if (readmarker){
initialReadMarker = readmarker.getContent().marker;
} else {
@ -476,7 +476,7 @@ var TimelinePanel = React.createClass({
// ignore events for other rooms
if (room !== this.props.timelineSet.room) return;
if (ev.getType() !== "m.read_marker") return;
if (ev.getType() !== "m.fully_read") return;
const markerEventId = ev.getContent().marker;
console.log('TimelinePanel: Read marker received from server', markerEventId);