From c18a7175b741da57fa111d47c1dc8c78e9131bac Mon Sep 17 00:00:00 2001 From: Bruno Windels Date: Mon, 1 Mar 2021 15:02:21 +0100 Subject: [PATCH] some notes wrt to #248 / backfills --- doc/impl-thoughts/CATCHUP-BACKFILL.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/doc/impl-thoughts/CATCHUP-BACKFILL.md b/doc/impl-thoughts/CATCHUP-BACKFILL.md index 12c6ca3b..415947dc 100644 --- a/doc/impl-thoughts/CATCHUP-BACKFILL.md +++ b/doc/impl-thoughts/CATCHUP-BACKFILL.md @@ -5,3 +5,8 @@ we should automatically fill gaps (capped at a certain (large) amount of events, during these fills (once supported), we should calculate push actions and trigger notifications, as we would otherwise have received this through sync. we could also trigger notifications when just backfilling on initial sync up to a certain amount of time in the past? + + +we also need to backfill if we didn't receive any m.room.message in a limited sync for an encrypted room, as it's possible the room summary hasn't seen the last message in the room and is now out of date. this is also true for a non-encrypted room actually, although wrt to the above, here notifications would work well though. + +a room should request backfills in needsAfterSyncCompleted and do them in afterSyncCompleted.