diff --git a/src/matrix/room/timeline/persistence/SyncWriter.js b/src/matrix/room/timeline/persistence/SyncWriter.js index 7f2275b1..231f7295 100644 --- a/src/matrix/room/timeline/persistence/SyncWriter.js +++ b/src/matrix/room/timeline/persistence/SyncWriter.js @@ -104,6 +104,8 @@ export class SyncWriter { const memberChange = new MemberChange(this._roomId, event); const {member} = memberChange; if (member) { + // TODO: can we avoid writing redundant members here by checking + // if this is not a limited sync and the state is not in the timeline? txn.roomMembers.set(member.serialize()); return memberChange; }