From 783b556b2a48cb8f2dee37bd6fb2df17c6401227 Mon Sep 17 00:00:00 2001
From: Matthew Hodgson <matthew@matrix.org>
Date: Mon, 9 Apr 2018 19:27:56 +0100
Subject: [PATCH] todo for lazy member work
---
src/sync.js | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/src/sync.js b/src/sync.js
index 3928875f2..7d32220f1 100644
--- a/src/sync.js
+++ b/src/sync.js
@@ -1294,6 +1294,12 @@ SyncApi.prototype._resolveInvites = function(room) {
*/
SyncApi.prototype._processRoomEvents = function(room, stateEventList,
timelineEventList) {
+ // TODO: if we are lazyloading members, then we simply never add member events from
+ // the state block into the timeline with addLiveEvents(); instead we just
+ // update the state.
+ // (Ftr, we hide state changes which happen during a gappy sync because
+ // we empty the timeline each time and re-initialise the state)
+
// If there are no events in the timeline yet, initialise it with
// the given state events
const liveTimeline = room.getLiveTimeline();
--
GitLab