From 15ae35bbbc93113b914b53bd912c6f5cbcf88020 Mon Sep 17 00:00:00 2001 From: Bruno Windels Date: Mon, 31 Aug 2020 16:09:38 +0200 Subject: [PATCH] add future todo --- src/matrix/room/RoomSummary.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/matrix/room/RoomSummary.js b/src/matrix/room/RoomSummary.js index 51a31d21..3b550527 100644 --- a/src/matrix/room/RoomSummary.js +++ b/src/matrix/room/RoomSummary.js @@ -116,7 +116,9 @@ function updateSummary(data, summary) { const heroes = summary["m.heroes"]; const joinCount = summary["m.joined_member_count"]; const inviteCount = summary["m.invited_member_count"]; - + // TODO: we could easily calculate if all members are available here and set hasFetchedMembers? + // so we can avoid calling /members... + // we'd need to do a count query in the roomMembers store though ... if (heroes && Array.isArray(heroes)) { data = data.cloneIfNeeded(); data.heroes = heroes;